build: add mypy to pre-commit
This commit is contained in:
parent
137c22cd70
commit
7f97c97b30
1 changed files with 6 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ repos:
|
|||
- repo: local
|
||||
hooks:
|
||||
- id: fmt
|
||||
name: fmt
|
||||
name: cargo fmt
|
||||
description: Format files with cargo fmt.
|
||||
entry: cargo +nightly fmt
|
||||
language: system
|
||||
|
|
@ -44,8 +44,12 @@ repos:
|
|||
types: [pyi]
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.0.286
|
||||
rev: v0.0.287
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [--fix, --exit-non-zero-on-fix]
|
||||
types_or: [python, pyi]
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: 'v1.5.1'
|
||||
hooks:
|
||||
- id: mypy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue