Add check_path hook

Adds a hook which can be used for preventing commits to paths specified
by regex.
This commit is contained in:
Olli Raula 2020-05-28 16:55:18 +03:00
parent f0bf512dbb
commit ade67be453
5 changed files with 96 additions and 0 deletions

View file

@ -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.