1
Fork 0

ci: configure pre-commit hooks

This commit is contained in:
Tibo De Peuter 2026-03-21 16:35:42 +01:00
parent e18ee3bb73
commit 1d8db987da
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
6 changed files with 125 additions and 1 deletions

20
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,20 @@
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.9
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args: ['--branch', 'main', '--branch', 'dev']