Skip to content

Commit

Permalink
MNT: Add mypy pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 6, 2023
1 parent 586da8d commit 7970907
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@ repos:
hooks:
- id: flake8
exclude: "^(doc|nisext|tools)/"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
# Sync with project.optional-dependencies.typing
additional_dependencies:
- pytest
- types-setuptools
- types-Pillow
- pydicom
# Sync with tool.mypy['exclude']
exclude: "^(doc|nisext|tools)/|.*/tests/"

0 comments on commit 7970907

Please sign in to comment.