mypy: Allow trivial --strict options
This commit is contained in:
parent
4b4b746791
commit
fda807ce9a
20
mypy.ini
20
mypy.ini
@ -3,6 +3,22 @@
|
|||||||
# with conditional imports (like secrets.py).
|
# with conditional imports (like secrets.py).
|
||||||
python_version = 3.6
|
python_version = 3.6
|
||||||
|
|
||||||
|
# --strict
|
||||||
|
warn_unused_configs = True
|
||||||
|
warn_redundant_casts = True
|
||||||
|
warn_unused_ignores = True
|
||||||
|
disallow_subclassing_any = True
|
||||||
|
# disallow_untyped_calls = True
|
||||||
|
# disallow_untyped_defs = True
|
||||||
|
# disallow_incomplete_defs = True
|
||||||
|
# check_untyped_defs = True
|
||||||
|
# disallow_untyped_decorators = True
|
||||||
|
# no_implicit_optional = True
|
||||||
|
# warn_return_any = True
|
||||||
|
|
||||||
|
# disallow_any_generics = True
|
||||||
|
|
||||||
|
|
||||||
[mypy-faulthandler]
|
[mypy-faulthandler]
|
||||||
# https://github.com/python/typeshed/pull/2627
|
# https://github.com/python/typeshed/pull/2627
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
@ -30,3 +46,7 @@ ignore_missing_imports = True
|
|||||||
[mypy-bdb]
|
[mypy-bdb]
|
||||||
# stdlib, missing in typeshed
|
# stdlib, missing in typeshed
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
|
|
||||||
|
[mypy-qutebrowser.browser.webkit.rfc6266]
|
||||||
|
# subclasses dynamic PyPEG2 classes
|
||||||
|
disallow_subclassing_any = False
|
||||||
|
Loading…
Reference in New Issue
Block a user