Florian Bruhin
f36a98ec76
travis: Reallow PyQt 5.10
...
Looks like this works again? Maybe because of Ubuntu Xenial?
Fixes #4055
2018-11-27 17:50:41 +01:00
Florian Bruhin
43c2cccc17
travis: Set "os: linux" globally
2018-11-27 17:39:52 +01:00
Florian Bruhin
07c632869d
Merge branch 'mypy'
2018-11-27 16:58:18 +01:00
Florian Bruhin
fca2d9dfb4
mypy: Add to travis
2018-11-27 16:15:08 +01:00
Florian Bruhin
caca60087f
Fix coverage
2018-11-27 13:24:48 +01:00
Florian Bruhin
21edeca3e0
pylint: disable=unused-import for typing
...
Apparently marking modules as used based on type comments doesn't work with
Python 3.7:
https://github.com/PyCQA/pylint/issues/2345
https://github.com/python/typed_ast/issues/60
2018-11-27 09:56:23 +01:00
Florian Bruhin
251531e6d0
manifest: Exclude mypy.ini
2018-11-27 08:59:39 +01:00
Florian Bruhin
984970e765
vulture: Ignore reserved value
2018-11-27 08:59:13 +01:00
Florian Bruhin
c931654a8d
Remove old exit status values
...
Those weren't used anymore since bc8176ff21
.
Since the values were removed in v1.0.0 and never used since then, it seems
fine to re-use them in the future.
2018-11-27 08:57:49 +01:00
Florian Bruhin
80808ee9d2
Add docstring
2018-11-27 08:54:25 +01:00
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
a2ba0b4c76
Thanks to the HSR!
2018-11-22 09:36:13 +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