Skip to content

Commit

Permalink
Move mypy config to pyproject.toml (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenstad committed Jul 1, 2024
1 parent 8fb8059 commit cd47bdc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 0 additions & 20 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cd47bdc

Please sign in to comment.