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
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: fmt
|
- id: fmt
|
||||||
name: fmt
|
name: cargo fmt
|
||||||
description: Format files with cargo fmt.
|
description: Format files with cargo fmt.
|
||||||
entry: cargo +nightly fmt
|
entry: cargo +nightly fmt
|
||||||
language: system
|
language: system
|
||||||
|
|
@ -44,8 +44,12 @@ repos:
|
||||||
types: [pyi]
|
types: [pyi]
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.0.286
|
rev: v0.0.287
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
types_or: [python, pyi]
|
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