mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-15 09:18:46 +02:00
Added a pre-commit hook that disallows committing to main. (#181)
Since I committed to main again I added an pre-commit hook that prevents that. Since pushing to main is disallowed this should prevent someone to be stuck with a mess.
This commit is contained in:
parent
b46a52e019
commit
c96462532b
@ -23,6 +23,8 @@ repos:
|
||||
- id: debug-statements
|
||||
- id: pretty-format-json
|
||||
exclude: (\.ipynb$)
|
||||
- id: no-commit-to-branch
|
||||
args: [--branch, main]
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
|
Loading…
x
Reference in New Issue
Block a user