Skip to content

Commit 79de849

Browse files
committed
setup.cfg: move mypy configuration from setup.cfg to pyproject.toml
TOML is a nicer format than the INI format setup.cfg uses.
1 parent 0d1f4c6 commit 79de849

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,17 @@ lines-after-imports = 2
192192
"src/_pytest/_py/**/*.py" = ["B", "PYI"]
193193
"src/_pytest/_version.py" = ["I001"]
194194
"testing/python/approx.py" = ["B015"]
195+
196+
[tool.mypy]
197+
mypy_path = ["src"]
198+
check_untyped_defs = true
199+
disallow_any_generics = true
200+
disallow_untyped_defs = true
201+
ignore_missing_imports = true
202+
show_error_codes = true
203+
strict_equality = true
204+
warn_redundant_casts = true
205+
warn_return_any = true
206+
warn_unreachable = true
207+
warn_unused_configs = true
208+
no_implicit_reexport = true

setup.cfg

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,3 @@ ignore =
8989

9090
[devpi:upload]
9191
formats = sdist.tgz,bdist_wheel
92-
93-
[mypy]
94-
mypy_path = src
95-
check_untyped_defs = True
96-
disallow_any_generics = True
97-
disallow_untyped_defs = True
98-
ignore_missing_imports = True
99-
show_error_codes = True
100-
strict_equality = True
101-
warn_redundant_casts = True
102-
warn_return_any = True
103-
warn_unreachable = True
104-
warn_unused_configs = True
105-
no_implicit_reexport = True

0 commit comments

Comments
 (0)