setup.cfg: move mypy configuration from setup.cfg to pyproject.toml

TOML is a nicer format than the INI format setup.cfg uses.
This commit is contained in:
Ran Benita 2024-02-05 11:53:21 +02:00
parent 0d1f4c63fa
commit 79de84941a
2 changed files with 14 additions and 14 deletions

View File

@ -192,3 +192,17 @@ lines-after-imports = 2
"src/_pytest/_py/**/*.py" = ["B", "PYI"] "src/_pytest/_py/**/*.py" = ["B", "PYI"]
"src/_pytest/_version.py" = ["I001"] "src/_pytest/_version.py" = ["I001"]
"testing/python/approx.py" = ["B015"] "testing/python/approx.py" = ["B015"]
[tool.mypy]
mypy_path = ["src"]
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true

View File

@ -89,17 +89,3 @@ ignore =
[devpi:upload] [devpi:upload]
formats = sdist.tgz,bdist_wheel formats = sdist.tgz,bdist_wheel
[mypy]
mypy_path = src
check_untyped_defs = True
disallow_any_generics = True
disallow_untyped_defs = True
ignore_missing_imports = True
show_error_codes = True
strict_equality = True
warn_redundant_casts = True
warn_return_any = True
warn_unreachable = True
warn_unused_configs = True
no_implicit_reexport = True