Skip to content

Commit dd94e0d

Browse files
xhochyjorisvandenbossche
authored andcommitted
BLD: More lightweight mypy pre-commit hook (pandas-dev#30814)
1 parent 8718877 commit dd94e0d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.pre-commit-config.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ repos:
2020
rev: v0.730
2121
hooks:
2222
- id: mypy
23-
# We run mypy over all files because of:
24-
# * changes in type definitions may affect non-touched files.
25-
# * Running it with `mypy pandas` and the filenames will lead to
26-
# spurious duplicate module errors,
27-
# see also https://github.com/pre-commit/mirrors-mypy/issues/5
28-
pass_filenames: false
2923
args:
30-
- pandas
24+
# As long as a some files are excluded from check-untyped-defs
25+
# we have to exclude it from the pre-commit hook as the configuration
26+
# is based on modules but the hook runs on files.
27+
- --no-check-untyped-defs
28+
- --follow-imports
29+
- skip
30+
files: pandas/

0 commit comments

Comments
 (0)