Skip to content

Commit 8b6b8b0

Browse files
committed
Add mypy pre-commit hook.
1 parent 712d9c2 commit 8b6b8b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ repos:
2020
args: [--fix, --exit-non-zero-on-fix]
2121
- id: ruff-format
2222

23+
- repo: https://github.com/pre-commit/mirrors-mypy
24+
rev: v1.16.0
25+
hooks:
26+
- id: mypy
27+
args: [--ignore-missing-imports, --strict]
28+
exclude: "tests"
29+
2330
- repo: https://github.com/pre-commit/pre-commit-hooks
2431
rev: v5.0.0
2532
hooks:

0 commit comments

Comments
 (0)