2023-09-01 10:30:10 +10:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-12-03 02:17:06 -05:00
|
|
|
rev: v5.0.0
|
2023-09-01 10:30:10 +10:00
|
|
|
hooks:
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- id: no-commit-to-branch
|
|
|
|
|
args: ['--branch', 'main']
|
2024-10-29 13:25:20 +10:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-07-08 13:19:17 +10:00
|
|
|
rev: v0.12.2
|
2023-09-01 10:30:10 +10:00
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
2024-06-04 16:51:08 +10:00
|
|
|
args: ['--ignore=E741,E501', '--extend-exclude=subprojects', '.']
|
2024-10-29 13:25:20 +10:00
|
|
|
- id: ruff-format
|
|
|
|
|
args: ['--check', '--diff']
|
2023-09-01 10:30:10 +10:00
|
|
|
- repo: https://gitlab.freedesktop.org/freedesktop/ci-templates.git
|
2024-12-04 09:02:55 +10:00
|
|
|
rev: e195d80f35b45cc73668be3767b923fd76c70ed5
|
2023-09-01 10:30:10 +10:00
|
|
|
hooks:
|
|
|
|
|
- id: check-commits
|
|
|
|
|
- id: generate-template
|
2025-03-10 21:04:46 +10:00
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: run-sed-script
|
|
|
|
|
name: Check for whitespace errors
|
|
|
|
|
entry: ./.gitlab-ci/whitespace-check.py
|
|
|
|
|
language: system
|
2025-06-24 12:20:35 +10:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
|
|
|
rev: v20.1.6
|
|
|
|
|
hooks:
|
|
|
|
|
- id: clang-format
|
|
|
|
|
types_or: [c]
|