mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Add check_path hook
Adds a hook which can be used for preventing commits to paths specified by regex.
This commit is contained in:
parent
f0bf512dbb
commit
ade67be453
5 changed files with 96 additions and 0 deletions
|
|
@ -10,6 +10,11 @@
|
|||
description: Prevent giant files from being committed
|
||||
entry: check-added-large-files
|
||||
language: python
|
||||
- id: check-path-edits
|
||||
name: Check for path edits
|
||||
description: Prevent edits tp specified path
|
||||
entry: check-path-edits
|
||||
language: python
|
||||
- id: check-ast
|
||||
name: Check python ast
|
||||
description: Simply check whether the files parse as valid python.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue