From c96462532b6045130f598aa991857bf0340c6a6b Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 1 Oct 2023 21:40:39 +0200 Subject: [PATCH] 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. --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37fb5ef..866e572 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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.