2023-03-10 13:33:45 +10:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-02-03 13:17:12 +10:00
|
|
|
rev: v5.0.0
|
2023-03-10 13:33:45 +10:00
|
|
|
hooks:
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: trailing-whitespace
|
2023-12-05 14:25:10 +10:00
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-symlinks
|
2023-03-10 13:33:45 +10:00
|
|
|
- id: no-commit-to-branch
|
|
|
|
|
args: ['--branch', 'main']
|
|
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
2025-02-03 13:17:12 +10:00
|
|
|
rev: v0.9.4
|
2023-03-10 13:33:45 +10:00
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
|
|
|
|
args: ['--ignore=E741,E501', '.', 'proto/ei-scanner']
|
2024-10-17 15:39:07 +10:00
|
|
|
- id: ruff-format
|
|
|
|
|
args: ['.', 'proto/ei-scanner']
|
2023-05-19 14:43:57 +10:00
|
|
|
- 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
|
2023-03-10 13:33:45 +10:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
2026-03-11 15:22:11 +10:00
|
|
|
rev: v20.1.6
|
|
|
|
|
hooks:
|
2024-10-17 15:39:07 +10:00
|
|
|
- id: clang-format
|
2026-03-11 15:22:11 +10:00
|
|
|
types_or: [c]
|