diff --git a/pyproject.toml b/pyproject.toml index 5deb92281475b..e24704e24c5cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,3 +67,38 @@ markers = [ "arm_slow: mark a test as slow for arm64 architecture", "arraymanager: mark a test to run with ArrayManager enabled", ] + +[tool.mypy] +platform = "linux-64" +ignore_missing_imports = true +no_implicit_optional = true +check_untyped_defs = true +strict_equality = true +warn_redundant_casts = true +warn_unused_ignores = true +show_error_codes = true + +[[tool.mypy.overrides]] +module = [ + "pandas.tests.*", + "pandas._version", + "pandas.io.clipboard", +] +check_untyped_defs = false + +[[tool.mypy.overrides]] +module = [ + "pandas.tests.apply.test_series_apply", + "pandas.tests.arithmetic.conftest", + "pandas.tests.arrays.sparse.test_combine_concat", + "pandas.tests.dtypes.test_common", + "pandas.tests.frame.methods.test_to_records", + "pandas.tests.groupby.test_rank", + "pandas.tests.groupby.transform.test_transform", + "pandas.tests.indexes.interval.test_interval", + "pandas.tests.indexing.test_categorical", + "pandas.tests.io.excel.test_writers", + "pandas.tests.reductions.test_reductions", + "pandas.tests.test_expressions", +] +ignore_errors = true diff --git a/setup.cfg b/setup.cfg index 566248156cdc8..dca65be27ab77 100644 --- a/setup.cfg +++ b/setup.cfg @@ -205,58 +205,3 @@ force_grid_wrap = True force_sort_within_sections = True skip_glob = env, skip = pandas/__init__.py - -[mypy] -platform = linux-64 -ignore_missing_imports = True -no_implicit_optional = True -check_untyped_defs = True -strict_equality = True -warn_redundant_casts = True -warn_unused_ignores = True -show_error_codes = True - -[mypy-pandas.tests.*] -check_untyped_defs = False - -[mypy-pandas._version] -check_untyped_defs = False - -[mypy-pandas.io.clipboard] -check_untyped_defs = False - -[mypy-pandas.tests.apply.test_series_apply] -ignore_errors = True - -[mypy-pandas.tests.arithmetic.conftest] -ignore_errors = True - -[mypy-pandas.tests.arrays.sparse.test_combine_concat] -ignore_errors = True - -[mypy-pandas.tests.dtypes.test_common] -ignore_errors = True - -[mypy-pandas.tests.frame.methods.test_to_records] -ignore_errors = True - -[mypy-pandas.tests.groupby.test_rank] -ignore_errors = True - -[mypy-pandas.tests.groupby.transform.test_transform] -ignore_errors = True - -[mypy-pandas.tests.indexes.interval.test_interval] -ignore_errors = True - -[mypy-pandas.tests.indexing.test_categorical] -ignore_errors = True - -[mypy-pandas.tests.io.excel.test_writers] -ignore_errors = True - -[mypy-pandas.tests.reductions.test_reductions] -ignore_errors = True - -[mypy-pandas.tests.test_expressions] -ignore_errors = True