28 lines
776 B
YAML
28 lines
776 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
name: Enforce removal of trailing whitespace
|
|
- id: end-of-file-fixer
|
|
name: Enforce end of the file format
|
|
- id: check-yaml
|
|
name: Check YAML syntax
|
|
- id: check-toml
|
|
name: Check TOML syntax
|
|
- id: check-merge-conflict
|
|
name: Check for merge conflict markers
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff
|
|
name: Lint with ruff
|
|
entry: poetry run ruff check --fix
|
|
language: system
|
|
types: [python]
|
|
- id: mypy
|
|
name: Type-check with mypy
|
|
entry: poetry run mypy
|
|
language: system
|
|
pass_filenames: false
|
|
types_or: [python, pyi]
|