Skip to content

Commit e71de63

Browse files
snowman2max-sixty
andauthored
REF: Make mypy manual stage with pre-commit (#6024)
* REF: Make mypy nanual stage with pre-commit * Update .pre-commit-config.yaml Co-authored-by: Maximilian Roos <[email protected]> Co-authored-by: Maximilian Roos <[email protected]>
1 parent d47cf0c commit e71de63

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ repos:
4848
rev: v0.931
4949
hooks:
5050
- id: mypy
51-
# `properies` & `asv_bench` are copied from setup.cfg.
52-
# `_typed_ops.py` is added since otherwise mypy will complain (but notably only in pre-commit)
53-
exclude: "properties|asv_bench|_typed_ops.py"
51+
# Copied from setup.cfg
52+
exclude: "properties|asv_bench"
53+
# This is slow and so we take it out of the fast-path; requires passing
54+
# `--hook-stage manual` to pre-commit
55+
stages: [manual]
5456
additional_dependencies: [
5557
# Type stubs
5658
types-python-dateutil,

0 commit comments

Comments
 (0)