libei/.pre-commit-config.yaml
Peter Hutterer 9697aa9c74 pre-commit: autoupdate and add two more useful checkers
We don't have symlinks but let's check for them anyway. And check for
merge conflict leftoers too.
2023-12-05 14:25:10 +10:00

26 lines
728 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-symlinks
- id: no-commit-to-branch
args: ['--branch', 'main']
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
args: ['--check', '--diff', '.', 'proto/ei-scanner']
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.7
hooks:
- id: ruff
args: ['--ignore=E741,E501', '.', 'proto/ei-scanner']
- repo: local
hooks:
- id: ci-fairy-generate-template
name: ci-fairy-generate-template
entry: bash -c 'command -v ci-fairy && ci-fairy generate-template || true'
language: system