Commit Graph

17020 Commits

Author SHA1 Message Date
Florian Bruhin
ec0dc59b06 mypy: Disable warn_unused_configs
Looks like mypy's cache causes config sections to be ignored sometimes.
2018-11-27 08:53:20 +01:00
Florian Bruhin
7934dc9a95 mypy: Fix assert location 2018-11-27 08:37:59 +01:00
Florian Bruhin
f34a8ba194 Update changelog 2018-11-26 23:32:20 +01:00
Florian Bruhin
06afd3604e Don't try to iterate over auth info
This caused a crash when trying to use a proxy with authentication on QtWebKit.
It was introduced in 3a5241b642 since it was a
namedtuple before and was iterable like this.
2018-11-26 23:30:55 +01:00
Florian Bruhin
e851480a2b Use empty tuple instead of None
While None works (as logging.py does "if args:" consistently), it was never
intended to be used like that.
2018-11-26 23:30:21 +01:00
Florian Bruhin
462e07a578 Use integer division to set font weight
QFont::setFontWeight takes an int only - it looks like PyQt accepts a float and
just truncates it. That's the behaviour we actually want here, but let's be
explicit about it.
2018-11-26 23:25:13 +01:00
Florian Bruhin
d2751935e0 Convert *args to list
It being a tuple also happens to work, but is somewhat inconsistent.
2018-11-26 23:24:41 +01:00
Florian Bruhin
6b5a92fb2d mypy: Update config 2018-11-26 23:24:31 +01:00
Florian Bruhin
1f36e56e1c Complete partial annotations
Unfortunately we can't turn on mypy's --disallow-incomplete-defs (yet) due to
https://github.com/python/mypy/issues/5954
2018-11-26 20:12:03 +01:00
Florian Bruhin
fda807ce9a mypy: Allow trivial --strict options 2018-11-26 19:03:07 +01:00
Florian Bruhin
4b4b746791 mypy: Add type annotations for browsertab.AbstractAction 2018-11-26 18:25:12 +01:00
Florian Bruhin
7834e3c7dd mypy: Add mypy.ini to ignore missing modules 2018-11-26 18:25:12 +01:00
Florian Bruhin
ee1f7a5187 mypy: Use own copy of PyQt5-stubs
The one by upstream need various fixes which aren't merged yet.
2018-11-26 18:25:12 +01:00
Florian Bruhin
01b2c40272 Add requirements-optional.txt 2018-11-26 18:25:12 +01:00
Florian Bruhin
bd731593ce mypy: Add {posargs} in tox.ini 2018-11-26 18:25:12 +01:00
Florian Bruhin
3cc2af909b mypy: Add PyQt5 stubs 2018-11-26 18:25:12 +01:00
Florian Bruhin
12b26512fc mypy: Fix :session-save
We use a sentinel value for the argument so we can check whether the default
was used. To express that in the type system, it needs a separate class.
2018-11-26 18:25:12 +01:00
Florian Bruhin
8b1fd83366 mypy: Fix AbstractSettings default values 2018-11-26 18:25:12 +01:00
Florian Bruhin
8083091967 mypy: Fix _color_flag init 2018-11-26 18:25:12 +01:00
Florian Bruhin
923fd89323 mypy: Fix int-issues in commands.py 2018-11-26 18:25:12 +01:00
Florian Bruhin
08bd47bc16 mypy: Fix type for :scroll 2018-11-26 18:25:12 +01:00
Florian Bruhin
b63ed090d8 mypy: Fix log handler access 2018-11-26 18:25:12 +01:00
Florian Bruhin
c2c3f68828 mypy: Move tabbed_browser 2018-11-26 18:25:12 +01:00
Florian Bruhin
052c3f92ad mypy: Fix issues with config default values 2018-11-26 18:25:12 +01:00
Florian Bruhin
b37dbc4572 mypy: Add missing annotations 2018-11-26 18:25:12 +01:00
Florian Bruhin
a1e83f0773 mypy: Use class-based API for enum.IntEnum
See https://github.com/python/mypy/issues/4865
2018-11-26 18:25:12 +01:00
Florian Bruhin
563e1e8294 mypy: Ignore yaml.CSafe{Loader,Dumper}
See https://github.com/python/typeshed/blob/master/third_party/2and3/yaml/__init__.pyi#L9
2018-11-26 18:24:19 +01:00
Florian Bruhin
97d0cff93b mypy: Ignore ImportError handling
See https://github.com/python/mypy/issues/1153
2018-11-26 18:24:19 +01:00
Florian Bruhin
4d1b3df5e0 mypy: Fix logging.VDEBUG issues 2018-11-22 13:52:05 +01:00
Florian Bruhin
0999945af4 mypy: Run with --ignore-missing-imports 2018-11-22 13:52:01 +01:00
Florian Bruhin
85b2fb513b mypy: Add to tox 2018-11-22 13:51:55 +01:00
Florian Bruhin
2152081d82 s/an URL/a URL/g 2018-11-16 12:37:30 +01:00
Raphael Das Gupta
409e0d33cd
fix grammar: "to which" instead of "to where" 2018-11-16 00:43:18 +01:00
Raphael Das Gupta
bca47ff879
Fix grammar: add required comma 2018-11-16 00:42:17 +01:00
Raphael Das Gupta
7ee68c43df
Fix grammar: This kind of question requires "does"
in English
2018-11-16 00:39:54 +01:00
Florian Bruhin
19cb3598cc Revert "travis: Add Windows"
This reverts commit 6f60f10b8e.
Was supposed to be in a branch.
2018-11-15 09:47:27 +01:00
Florian Bruhin
e1cb00bed3 Recompile requirements 2018-11-14 20:03:15 +01:00
Florian Bruhin
6f60f10b8e travis: Add Windows 2018-11-14 20:03:05 +01:00
Florian Bruhin
02e350779b travis: Upgrade to Xenial
See https://blog.travis-ci.com/2018-11-08-xenial-release
2018-11-14 19:59:19 +01:00
Florian Bruhin
fa84625556 travis: Remove "sudo: false"
See https://blog.travis-ci.com/2018-10-04-combining-linux-infrastructures
2018-11-14 19:56:55 +01:00
Florian Bruhin
0786af0f28
Merge pull request #4412 from rcorre/url-title-completion
Don't complete url and title from same search word.
2018-11-14 11:51:59 +01:00
Florian Bruhin
8dfca6fafb
Merge pull request #4421 from qutebrowser/pyup-scheduled-update-2018-11-12
Scheduled weekly dependency update for week 45
2018-11-14 10:35:27 +01:00
Ryan Roden-Corrent
bf10f483e1
Fix sql comment to match updated code. 2018-11-13 20:44:57 -05:00
Jay Kamat
6010ce69b9
Merge pull request #4408 from lyeoh/master
Strip fragment and query only for `:navigate up`
2018-11-12 21:12:53 -08:00
Jay Kamat
3ecf6141fc
Merge pull request #4420 from esclerofilo/patch-1
Allow password_fill to work without final newline
2018-11-12 18:40:26 -08:00
Jay Kamat
16bad3184b
Update changelog 2018-11-12 18:38:26 -08:00
Jay Kamat
3e1bfc3e28
Fix 'in' vs 'equal' error 2018-11-12 18:35:11 -08:00
pyup-bot
4ec55d3597 Update pytest-rerunfailures from 4.2 to 5.0 2018-11-12 19:01:22 +01:00
pyup-bot
da091fb4b6 Update pytest from 3.10.0 to 3.10.1 2018-11-12 19:01:21 +01:00
pyup-bot
c9fd900578 Update cryptography from 2.3.1 to 2.4.1 2018-11-12 19:01:19 +01:00