Skip to content

Commit aea42ca

Browse files
chore: Remove no-commit-to-branch pre-commit (#4985)
The hook prevents committing directly to the main branch, but this can be annoying for developers who use a different Git workflow. If you accidentally try to commit to main, you have to create a new branch and rerun all pre-commit checks. Since we already enforce branch protection rules for main via GitHub, this hook adds little value while reducing flexibility. Removing it allows for a more streamlined workflow without unnecessary friction.
1 parent 74ab2c0 commit aea42ca

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ repos:
2323
args: [--allow-multiple-documents]
2424
- id: detect-private-key
2525
- id: end-of-file-fixer
26-
- id: no-commit-to-branch
2726

2827
- repo: https://github.com/python-jsonschema/check-jsonschema
2928
rev: 0.27.3

0 commit comments

Comments
 (0)