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
|
|
@ -123,6 +123,9 @@ Replaces or checks mixed line ending.
|
|||
Assert that files in tests/ end in `_test.py`.
|
||||
- Use `args: ['--django']` to match `test*.py` instead.
|
||||
|
||||
#### `no-commit-keywords`
|
||||
Protect branches from checkins when 'nocommit' keyword is present. Used to remind the author to prevent work-in-progress state from being committed.
|
||||
|
||||
#### `no-commit-to-branch`
|
||||
Protect specific branches from direct checkins.
|
||||
- Use `args: [--branch, staging, --branch, master]` to set the branch.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue