Add pre-commit hook to prevent commits to main

This commit is contained in:
Edgar P. Burkhart 2025-01-04 14:21:59 +01:00
parent e1f29f90c6
commit 6a17a3e333
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -1,4 +1,10 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: no-commit-to-branch
args: ["--branch", "main"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks: