Skip to content

Commit e3f52ea

Browse files
authored
Make mypy pre-commit pass (#5850)
* Make mypy pre-commit pass
1 parent c98579f commit e3f52ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,18 @@ repos:
3333
rev: v0.910-1
3434
hooks:
3535
- id: mypy
36-
# Copied from setup.cfg
37-
exclude: "properties|asv_bench"
36+
# `properies` & `asv_bench` are copied from setup.cfg.
37+
# `_typed_ops.py` is added since otherwise mypy will complain (but notably only in pre-commit)
38+
exclude: "properties|asv_bench|_typed_ops.py"
3839
additional_dependencies: [
3940
# Type stubs
4041
types-python-dateutil,
4142
types-pkg_resources,
4243
types-PyYAML,
4344
types-pytz,
45+
typing-extensions==3.10.0.0,
4446
# Dependencies that are typed
4547
numpy,
46-
typing-extensions==3.10.0.0,
4748
]
4849
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
4950
# - repo: https://github.com/asottile/pyupgrade

0 commit comments

Comments
 (0)