1 Commits

Author SHA1 Message Date
Alexander
29c564380d feat(infra): Adds pre-comit setup and conventional commit message enforment
All checks were successful
On-Site VTT - Develop / build (push) Successful in 2m50s
Adds git-hooks for pre-commit package and configuration for repository checks and commit messages
2023-12-11 21:46:45 +01:00
9 changed files with 29 additions and 8 deletions

21
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,21 @@
## See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-byte-order-marker
- id: end-of-file-fixer
- id: mixed-line-ending
- id: detect-private-key
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, chore, test]