mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
nocommit pre-hook
This commit is contained in:
parent
f0bf512dbb
commit
d3cb871783
5 changed files with 33 additions and 1 deletions
|
|
@ -161,6 +161,12 @@
|
|||
entry: name-tests-test
|
||||
language: python
|
||||
files: (^|/)tests/.+\.py$
|
||||
- id: no-commit-keywords
|
||||
name: "Don't commit when nocommit keyword is present"
|
||||
entry: no-commit-keywords
|
||||
language: script
|
||||
always_run: true
|
||||
types: [text]
|
||||
- id: no-commit-to-branch
|
||||
name: "Don't commit to branch"
|
||||
entry: no-commit-to-branch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue