build: add mypy to pre-commit

This commit is contained in:
Anand Balakrishnan 2023-09-01 11:22:29 -07:00
parent 137c22cd70
commit 7f97c97b30
No known key found for this signature in database

View file

@ -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