Skip to content

Commit 1cb7202

Browse files
committed
add a mypy pre-commit hook
1 parent e3a5cee commit 1cb7202

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ repos:
2626
- id: no-commit-to-branch #default is master and main
2727
- id: trailing-whitespace
2828
exclude_types: [svg]
29+
- repo: https://github.com/pre-commit/mirrors-mypy
30+
rev: v1.1.1
31+
hooks:
32+
- id: mypy
33+
args: ["--config-file", "pyproject.toml"]
2934
- repo: https://github.com/pycqa/flake8
3035
rev: 6.0.0
3136
hooks:

0 commit comments

Comments
 (0)