2025-02-05 14:02:36 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-02-05 14:09:17 +01:00
|
|
|
rev: v5.0.0
|
2025-02-05 14:02:36 +01:00
|
|
|
hooks:
|
2025-02-05 14:08:38 +01:00
|
|
|
- id: no-commit-to-branch # prevent direct commits to the `main` branch
|
2025-02-05 14:02:36 +01:00
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
2025-02-05 14:08:38 +01:00
|
|
|
- id: format
|
|
|
|
name: Format
|
|
|
|
entry: make
|
|
|
|
args: [format]
|
|
|
|
language: system
|
|
|
|
types: [python]
|
|
|
|
pass_filenames: false
|
|
|
|
- id: lint
|
|
|
|
name: Lint
|
|
|
|
entry: make
|
|
|
|
args: [lint]
|
|
|
|
types: [python]
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2025-02-05 14:09:17 +01:00
|
|
|
- id: Typecheck
|
|
|
|
name: Typecheck
|
|
|
|
entry: make
|
|
|
|
args: [typecheck]
|
|
|
|
types: [python]
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|