mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2026-06-11 00:02:29 +02:00
d1817e9049
pre-commit install --install-hooks
31 lines
727 B
YAML
31 lines
727 B
YAML
---
|
|
default_stages: [pre-commit]
|
|
|
|
default_install_hook_types: [pre-commit, commit-msg]
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
|
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
rev: v4.8.3
|
|
hooks:
|
|
- id: commitizen
|
|
stages: [commit-msg]
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: require-commit-body
|
|
name: Avoid bad commits
|
|
language: script
|
|
entry: scripts/hooks/require-commit-body.sh
|
|
stages: [commit-msg]
|