add pre-commit hook no-commit-to-branch

additional layer to prevent accidential commits directly to main branch
This commit is contained in:
mauwii 2023-02-18 15:04:25 +01:00
parent e80160f8dd
commit ed06a70eca
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -36,4 +36,6 @@ repos:
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
- id: no-commit-to-branch
args: ['--branch', 'main']
- id: trailing-whitespace