diff --git a/pyproject.toml b/pyproject.toml index e3d64805d..15a855ce6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -192,3 +192,17 @@ lines-after-imports = 2 "src/_pytest/_py/**/*.py" = ["B", "PYI"] "src/_pytest/_version.py" = ["I001"] "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 diff --git a/setup.cfg b/setup.cfg index eebce8c7c..a9943cef1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -89,17 +89,3 @@ ignore = [devpi:upload] 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