mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 04:26:52 +00:00
Add a no commit to specific branch hook. (#185)
* add no commit code and config * add the code * remove version tweak * fix logic, remove newline * add Tests and cleanup testing issues * remove extraneous modules * cleanup some pep8 and flake issues * reorder imports * more fixes for syntax checking * code cleanup based off asottile comments * Use Contractions Properly, alphabatize new hook. * Adding support for branches with a slash in them.
This commit is contained in:
parent
b95dcad616
commit
a8592669d9
6 changed files with 87 additions and 0 deletions
|
|
@ -129,6 +129,12 @@
|
|||
entry: name-tests-test
|
||||
language: python
|
||||
files: tests/.+\.py$
|
||||
- id: no-commit-to-branch
|
||||
name: "Don't commit to branch"
|
||||
entry: no-commit-to-branch
|
||||
language: python
|
||||
files: .*
|
||||
always_run: true
|
||||
- id: pyflakes
|
||||
name: Pyflakes (DEPRECATED, use flake8)
|
||||
description: This hook runs pyflakes. (This is deprecated, use flake8).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue