swt23w23/.pre-commit-config.yaml
Simon Bruder adb486bbb9
Add pre-commit hooks
This currently checks commit messages and editorconfig.
2023-11-14 19:22:27 +01:00

30 lines
699 B
YAML

default_install_hook_types:
- commit-msg
- post-commit
- pre-commit
repos:
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
name: Lint git commit message
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.3
hooks:
- id: editorconfig-checker
alias: ec
- repo: local
hooks:
- id: gitlint-author
name: Check commit author
description: This hook checks the commit author after the commit (without rejecting)
entry: gitlint
language: system
pass_filenames: false
always_run: true
stages:
- post-commit