Make mypy a bit stricter
This commit is contained in:
parent
2ba4914af7
commit
322ce57062
2 changed files with 19 additions and 2 deletions
15
setup.cfg
15
setup.cfg
|
|
@ -269,6 +269,21 @@ single_line_exclusions = typing
|
|||
[mypy]
|
||||
cache_dir = .cache/mypy
|
||||
|
||||
# Check the interior of functions without type annotations.
|
||||
check_untyped_defs = true
|
||||
|
||||
# Disallow generic types without explicit type parameters.
|
||||
disallow_any_generics = true
|
||||
|
||||
# Disallow functions with incomplete type annotations.
|
||||
disallow_incomplete_defs = true
|
||||
|
||||
# Disallow calling functions without type annotations.
|
||||
disallow_untyped_calls = true
|
||||
|
||||
# Disallow functions without type annotations (or incomplete annotations).
|
||||
disallow_untyped_defs = true
|
||||
|
||||
[mypy-folium.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-geopy.*]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue