Skip to content

Commit a18573b

Browse files
committed
Add mypy pre-commit hook
Follows recommendations at python/mypy#13916
1 parent b4c8b01 commit a18573b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ repos:
2828
- id: cmake-lint
2929
args:
3030
- --suppress-decorations
31+
- repo: https://github.com/pre-commit/mirrors-mypy
32+
rev: v1.13.0
33+
hooks:
34+
- id: mypy
35+
name: Check types with mypy
36+
language: system
37+
entry: build/venv/bin/mypy
38+
pass_filenames: false

0 commit comments

Comments
 (0)