Skip to content

Commit

Permalink
Move mypy config from tox.ini to mypy.ini.
Browse files Browse the repository at this point in the history
  • Loading branch information
wsanchez committed Jan 19, 2021
1 parent c0b067e commit 4d858a1
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 88 deletions.
85 changes: 85 additions & 0 deletions mypy.ini
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
88 changes: 0 additions & 88 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -149,99 +149,11 @@ deps =

commands =
mypy \
--config-file="{toxinidir}/tox.ini" \
--cache-dir="{toxworkdir}/mypy_cache" \
{tty:--pretty:} \
{posargs:release.py setup.py src}


[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


##
# pyupgrade
##
Expand Down

0 comments on commit 4d858a1

Please sign in to comment.