Skip to content

Commit 85f4cb4

Browse files
committed
MNT: Add mypy pre-commit hook
1 parent 24d5acb commit 85f4cb4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ repos:
2525
hooks:
2626
- id: flake8
2727
exclude: "^(doc|nisext|tools)/"
28+
- repo: https://github.com/pre-commit/mirrors-mypy
29+
rev: v0.991
30+
hooks:
31+
- id: mypy
32+
# Sync with project.optional-dependencies.typing
33+
additional_dependencies:
34+
- pytest
35+
- types-setuptools
36+
- types-Pillow
37+
- pydicom
38+
# Sync with tool.mypy['exclude']
39+
exclude: "^(doc|nisext|tools)/|.*/tests/"

0 commit comments

Comments
 (0)