Skip to content

Commit 304ccb4

Browse files
authored
Merge pull request #11928 from bluetech/setup-cfg-cleanups
Some setup.cfg cleanups
2 parents 0d1f4c6 + 90634a6 commit 304ccb4

File tree

2 files changed

+14
-37
lines changed

2 files changed

+14
-37
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 & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ project_urls =
3333
Tracker=https://github.com/pytest-dev/pytest/issues
3434

3535
[options]
36-
packages =
37-
_pytest
38-
_pytest._code
39-
_pytest._io
40-
_pytest._py
41-
_pytest.assertion
42-
_pytest.config
43-
_pytest.mark
44-
pytest
45-
py_modules = py
4636
install_requires =
4737
iniconfig
4838
packaging
@@ -56,7 +46,6 @@ package_dir =
5646
setup_requires =
5747
setuptools
5848
setuptools-scm>=6.0
59-
zip_safe = no
6049

6150
[options.entry_points]
6251
console_scripts =
@@ -77,29 +66,3 @@ testing =
7766
[options.package_data]
7867
_pytest = py.typed
7968
pytest = py.typed
80-
81-
[build_sphinx]
82-
source_dir = doc/en/
83-
build_dir = doc/build
84-
all_files = 1
85-
86-
[check-manifest]
87-
ignore =
88-
src/_pytest/_version.py
89-
90-
[devpi:upload]
91-
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)