diff --git a/pyproject.toml b/pyproject.toml index a57b6014..9573cbbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,27 @@ nbsphinx = "0.9.2" pygments = "2.16.1" sphinx-issues = "3.0.1" +[tool.mypy] +# The mypy configurations: http://bit.ly/2zEl9WI +python_version = "3.8" +check_untyped_defs = true +disallow_any_generics = true +disallow_untyped_calls = true +disallow_untyped_defs = true +disallow_incomplete_defs = true +disallow_untyped_decorators = true +ignore_errors = false +ignore_missing_imports = true +strict_optional = true +warn_unused_configs = true +warn_unused_ignores = true +warn_return_any = true +warn_redundant_casts = true + +[[tool.mypy.overrides]] +module = "tests.*" +ignore_errors = true + [tool.ruff] line-length = 100 diff --git a/setup.cfg b/setup.cfg index e538fc17..a2a761f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,23 +8,3 @@ universal=1 #addopts = --cov=nornir --cov-report=term-missing -vs filterwarnings = ignore::nornir.core.exceptions.ConflictingConfigurationWarning - -[mypy] -# The mypy configurations: http://bit.ly/2zEl9WI -python_version = 3.8 -check_untyped_defs = True -disallow_any_generics = True -disallow_untyped_calls = True -disallow_untyped_defs = True -disallow_incomplete_defs = True -disallow_untyped_decorators = True -ignore_errors = False -ignore_missing_imports = True -strict_optional = True -warn_unused_configs = True -warn_unused_ignores = True -warn_return_any = True -warn_redundant_casts = True - -[mypy-tests.*] -ignore_errors = True