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:
Philipp Horstenkamp 2023-10-01 21:40:39 +02:00 committed by GitHub
parent b46a52e019
commit c96462532b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ repos:
- id: debug-statements - id: debug-statements
- id: pretty-format-json - id: pretty-format-json
exclude: (\.ipynb$) exclude: (\.ipynb$)
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version. # Ruff version.