-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move mypy config from tox.ini to mypy.ini.
- Loading branch information
Showing
2 changed files
with
85 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
[mypy] | ||
|
||
# Global settings | ||
|
||
disallow_incomplete_defs = True | ||
disallow_untyped_defs = True | ||
no_implicit_optional = True | ||
show_column_numbers = True | ||
show_error_codes = True | ||
strict_optional = True | ||
warn_no_return = True | ||
warn_redundant_casts = True | ||
warn_return_any = True | ||
warn_unreachable = True | ||
warn_unused_ignores = True | ||
|
||
# Enable these over time | ||
|
||
check_untyped_defs = False | ||
|
||
# Disable some checks until effected files fully adopt mypy | ||
|
||
[mypy-klein._app] | ||
allow_untyped_defs = True | ||
|
||
[mypy-klein._plating] | ||
allow_untyped_defs = True | ||
|
||
[mypy-klein._resource] | ||
allow_untyped_defs = True | ||
|
||
[mypy-klein.test._trial] | ||
allow_untyped_defs = True | ||
|
||
[mypy-klein.test.test_app] | ||
allow_untyped_defs = True | ||
|
||
[mypy-klein.test.test_plating] | ||
allow_untyped_defs = True | ||
|
||
[mypy-klein.test.test_resource] | ||
allow_untyped_defs = True | ||
|
||
[mypy-klein.test.util] | ||
allow_untyped_defs = True | ||
|
||
# Don't complain about dependencies known to lack type hints | ||
|
||
[mypy-constantly] | ||
ignore_missing_imports = True | ||
|
||
[mypy-git.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-hyperlink] | ||
ignore_missing_imports = True | ||
|
||
[mypy-incremental] | ||
ignore_missing_imports = True | ||
|
||
[mypy-zope.interface] | ||
[mypy-zope.interface.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-treq] | ||
ignore_missing_imports = True | ||
[mypy-treq.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-hypothesis] | ||
ignore_missing_imports = True | ||
[mypy-hypothesis.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-idna] | ||
ignore_missing_imports = True | ||
|
||
[mypy-setuptools] | ||
ignore_missing_imports = True | ||
|
||
[mypy-tubes.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-twisted.*] | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters