Skip to content

Commit

Permalink
feat(pre-commit): add mypy to pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Jan 10, 2025
1 parent ff376ea commit 485779e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
hooks:
- id: clang-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down Expand Up @@ -63,6 +63,15 @@ repos:
hooks:
- id: codespell
additional_dependencies: [".[toml]"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
exclude: |
(?x)(
^tests/|
^setup.py$
)
- repo: local
hooks:
- id: pylint
Expand Down

0 comments on commit 485779e

Please sign in to comment.