mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
mypy now passes
This commit is contained in:
parent
b6ba6d4d03
commit
fb7e9338cd
32 changed files with 255 additions and 212 deletions
25
setup.cfg
25
setup.cfg
|
|
@ -16,3 +16,28 @@ requires-dist =
|
|||
pyflakes >= 2.1.0, < 2.2.0
|
||||
pycodestyle >= 2.5.0, < 2.6.0
|
||||
mccabe >= 0.6.0, < 0.7.0
|
||||
|
||||
[mypy]
|
||||
check_untyped_defs = true
|
||||
disallow_any_generics = true
|
||||
disallow_incomplete_defs = true
|
||||
# TODO: disallow_untyped_defs = true
|
||||
no_implicit_optional = true
|
||||
warn_unused_ignores = true
|
||||
|
||||
# TODO: until we opt in all the modules
|
||||
[mypy-flake8.defaults]
|
||||
disallow_untyped_defs = true
|
||||
[mypy-flake8.exceptions]
|
||||
disallow_untyped_defs = true
|
||||
[mypy-flake8.formatting.*]
|
||||
disallow_untyped_defs = true
|
||||
[mypy-flake8.main.cli]
|
||||
disallow_untyped_defs = true
|
||||
[mypy-flake8.statistics]
|
||||
disallow_untyped_defs = true
|
||||
[mypy-flake8.utils]
|
||||
disallow_untyped_defs = true
|
||||
|
||||
[mypy-tests.*]
|
||||
disallow_untyped_defs = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue