Skip to content

Commit

Permalink
Move strict option into mypy config
Browse files Browse the repository at this point in the history
  • Loading branch information
derlih committed Dec 27, 2020
1 parent c0e5753 commit 9408e31
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[mypy]
warn_unused_configs = True

disallow_any_generics = 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_redundant_casts = True
warn_unused_ignores = True
warn_return_any = True
no_implicit_reexport = True
strict_equality = True

[mypy-tests.*]
disallow_untyped_decorators = False

[mypy-aiodns]
ignore_missing_imports = True

[mypy-brotli]
ignore_missing_imports = True

[mypy-gunicorn.*]
ignore_missing_imports = True

[mypy-uvloop]
ignore_missing_imports = True

[mypy-cchardet]
ignore_missing_imports = True

[mypy-tokio]
ignore_missing_imports = True

[mypy-pytest]
ignore_missing_imports = True
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ fmt format:

.PHONY: mypy
mypy:
mypy --strict aiohttp
mypy tests
mypy aiohttp tests

.develop: .install-deps $(call to-hash,$(PYS) $(CYS) $(CS))
pip install -e .
Expand Down

0 comments on commit 9408e31

Please sign in to comment.