39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
repos:
|
|
# ---------------------------------------------------------------------------
|
|
# Generic hooks
|
|
# ---------------------------------------------------------------------------
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: check-json
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: mixed-line-ending
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Ruff
|
|
# ---------------------------------------------------------------------------
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.12.9
|
|
hooks:
|
|
- id: ruff
|
|
args:
|
|
- --fix
|
|
|
|
- id: ruff-format
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# MyPy
|
|
# ---------------------------------------------------------------------------
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.18.1
|
|
hooks:
|
|
- id: mypy
|