Add pre-commit hook to prevent commits to main
This commit is contained in:
parent
e1f29f90c6
commit
6a17a3e333
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue