Move the mypy config
This commit is contained in:
parent
03617d5bbb
commit
74ddb54772
2 changed files with 44 additions and 48 deletions
|
|
@ -108,6 +108,50 @@ source = ["velofy"]
|
|||
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
# Source: https://mypy.readthedocs.io/en/stable/config_file.html
|
||||
|
||||
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
|
||||
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
|
||||
module = [
|
||||
"folium.*",
|
||||
"geopy.*",
|
||||
"googlemaps.*",
|
||||
"matplotlib.*",
|
||||
"nox.*",
|
||||
"numpy.*",
|
||||
"ordered_set.*",
|
||||
"packaging",
|
||||
"pandas",
|
||||
"pytest",
|
||||
"rpy2.*",
|
||||
"sqlalchemy.*",
|
||||
"statsmodels.*",
|
||||
"utm.*",
|
||||
]
|
||||
|
||||
ignore_missing_imports = true
|
||||
|
||||
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
|
||||
# Task Runners
|
||||
|
|
|
|||
48
setup.cfg
48
setup.cfg
|
|
@ -253,51 +253,3 @@ use_parentheses = true
|
|||
# Source: https://google.github.io/styleguide/pyguide.html#313-imports-formatting
|
||||
force_single_line = true
|
||||
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.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-googlemaps.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-matplotlib.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-nox.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-numpy.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-ordered_set.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-packaging]
|
||||
ignore_missing_imports = true
|
||||
[mypy-pandas]
|
||||
ignore_missing_imports = true
|
||||
[mypy-pytest]
|
||||
ignore_missing_imports = true
|
||||
[mypy-rpy2.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-sqlalchemy.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-statsmodels.*]
|
||||
ignore_missing_imports = true
|
||||
[mypy-utm.*]
|
||||
ignore_missing_imports = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue