Skip to content

Commit 1994762

Browse files
committed
Move mypy configs from pre-commit to mypy config
1 parent 186c2ff commit 1994762

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ repos:
3434
rev: v0.812
3535
hooks:
3636
- id: mypy
37-
exclude: "properties|asv_bench"
3837
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
3938
# - repo: https://github.com/asottile/pyupgrade
4039
# rev: v1.22.1

setup.cfg

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ default_section = THIRDPARTY
162162
known_first_party = xarray
163163

164164
[mypy]
165+
exclude = properties|asv_bench|doc
166+
files = xarray/**/*.py
165167
show_error_codes = True
166168

167169
# Most of the numerical computing stack doesn't have type annotations yet.
@@ -237,7 +239,11 @@ ignore_missing_imports = True
237239
# be going away soon anyways)
238240
[mypy-xarray.core.pycompat]
239241
ignore_errors = True
240-
242+
# These also contain non-xarray code.
243+
[mypy-properties.*]
244+
ignore_errors = True
245+
[mypy-asv_bench.*]
246+
ignore_errors = True
241247

242248
[aliases]
243249
test = pytest

0 commit comments

Comments
 (0)