Skip to content

Commit

Permalink
Add mypy to pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Mar 13, 2024
1 parent a8fb50d commit 9230396
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,25 @@ repos:
- id: pyupgrade
args: ["--py38-plus"]

- repo: https://github.com/frostming/fix-future-annotations
rev: 0.5.0
hooks:
- id: fix-future-annotations

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/frostming/fix-future-annotations
rev: 0.5.0
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: fix-future-annotations
- id: mypy
types: [python]
args: [--install-types, --non-interactive, --strict]
exclude: "tests"

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand Down

0 comments on commit 9230396

Please sign in to comment.