Skip to content

Commit 06b9e49

Browse files
authored
CLN: move mypy config to pyproject.toml (pandas-dev#42620)
1 parent 46ed60a commit 06b9e49

File tree

2 files changed

+35
-55
lines changed

2 files changed

+35
-55
lines changed

pyproject.toml

+35
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,38 @@ markers = [
6767
"arm_slow: mark a test as slow for arm64 architecture",
6868
"arraymanager: mark a test to run with ArrayManager enabled",
6969
]
70+
71+
[tool.mypy]
72+
platform = "linux-64"
73+
ignore_missing_imports = true
74+
no_implicit_optional = true
75+
check_untyped_defs = true
76+
strict_equality = true
77+
warn_redundant_casts = true
78+
warn_unused_ignores = true
79+
show_error_codes = true
80+
81+
[[tool.mypy.overrides]]
82+
module = [
83+
"pandas.tests.*",
84+
"pandas._version",
85+
"pandas.io.clipboard",
86+
]
87+
check_untyped_defs = false
88+
89+
[[tool.mypy.overrides]]
90+
module = [
91+
"pandas.tests.apply.test_series_apply",
92+
"pandas.tests.arithmetic.conftest",
93+
"pandas.tests.arrays.sparse.test_combine_concat",
94+
"pandas.tests.dtypes.test_common",
95+
"pandas.tests.frame.methods.test_to_records",
96+
"pandas.tests.groupby.test_rank",
97+
"pandas.tests.groupby.transform.test_transform",
98+
"pandas.tests.indexes.interval.test_interval",
99+
"pandas.tests.indexing.test_categorical",
100+
"pandas.tests.io.excel.test_writers",
101+
"pandas.tests.reductions.test_reductions",
102+
"pandas.tests.test_expressions",
103+
]
104+
ignore_errors = true

setup.cfg

-55
Original file line numberDiff line numberDiff line change
@@ -205,58 +205,3 @@ force_grid_wrap = True
205205
force_sort_within_sections = True
206206
skip_glob = env,
207207
skip = pandas/__init__.py
208-
209-
[mypy]
210-
platform = linux-64
211-
ignore_missing_imports = True
212-
no_implicit_optional = True
213-
check_untyped_defs = True
214-
strict_equality = True
215-
warn_redundant_casts = True
216-
warn_unused_ignores = True
217-
show_error_codes = True
218-
219-
[mypy-pandas.tests.*]
220-
check_untyped_defs = False
221-
222-
[mypy-pandas._version]
223-
check_untyped_defs = False
224-
225-
[mypy-pandas.io.clipboard]
226-
check_untyped_defs = False
227-
228-
[mypy-pandas.tests.apply.test_series_apply]
229-
ignore_errors = True
230-
231-
[mypy-pandas.tests.arithmetic.conftest]
232-
ignore_errors = True
233-
234-
[mypy-pandas.tests.arrays.sparse.test_combine_concat]
235-
ignore_errors = True
236-
237-
[mypy-pandas.tests.dtypes.test_common]
238-
ignore_errors = True
239-
240-
[mypy-pandas.tests.frame.methods.test_to_records]
241-
ignore_errors = True
242-
243-
[mypy-pandas.tests.groupby.test_rank]
244-
ignore_errors = True
245-
246-
[mypy-pandas.tests.groupby.transform.test_transform]
247-
ignore_errors = True
248-
249-
[mypy-pandas.tests.indexes.interval.test_interval]
250-
ignore_errors = True
251-
252-
[mypy-pandas.tests.indexing.test_categorical]
253-
ignore_errors = True
254-
255-
[mypy-pandas.tests.io.excel.test_writers]
256-
ignore_errors = True
257-
258-
[mypy-pandas.tests.reductions.test_reductions]
259-
ignore_errors = True
260-
261-
[mypy-pandas.tests.test_expressions]
262-
ignore_errors = True

0 commit comments

Comments
 (0)