Skip to content

Commit 6e7f26f

Browse files
committed
Add mypy to pre-commit
1 parent 2babadd commit 6e7f26f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ repos:
2525
language_version: python3.13
2626
# GitHub editor is 127 chars wide, see workflows in .github/
2727
args: ["--line-length=127"]
28+
29+
- repo: https://github.com/pre-commit/mirrors-mypy
30+
rev: v1.14.1
31+
hooks:
32+
- id: mypy
33+
args: [
34+
"--ignore-missing-imports",
35+
"--strict",
36+
"--install-types", # This would break parallel builds, see README for mirrors-mypy
37+
"--non-interactive"
38+
]

0 commit comments

Comments
 (0)