Compare commits
2 Commits
4fbe9bd5de
...
acf599f905
| Author | SHA1 | Date | |
|---|---|---|---|
|
acf599f905
|
|||
|
eae4f5e27b
|
10
lefthook.yml
10
lefthook.yml
@@ -1,6 +1,8 @@
|
|||||||
# Refer for explanation to following link:
|
# Refer for explanation to following link:
|
||||||
# https://lefthook.dev/configuration/
|
# https://lefthook.dev/configuration/
|
||||||
|
|
||||||
|
glob_matcher: doublestar
|
||||||
|
|
||||||
templates:
|
templates:
|
||||||
av-hooks-dir: "/home/av/projects/private/git-hooks"
|
av-hooks-dir: "/home/av/projects/private/git-hooks"
|
||||||
|
|
||||||
@@ -12,3 +14,11 @@ pre-commit:
|
|||||||
|
|
||||||
- name: "check secret files"
|
- name: "check secret files"
|
||||||
run: "python3 {av-hooks-dir}/pre-commit/check-secrets-encrypted-with-ansible-vault.py"
|
run: "python3 {av-hooks-dir}/pre-commit/check-secrets-encrypted-with-ansible-vault.py"
|
||||||
|
|
||||||
|
- name: "format python"
|
||||||
|
glob: "**/*.py"
|
||||||
|
run: "black --quiet {staged_files}"
|
||||||
|
|
||||||
|
- name: "mypy"
|
||||||
|
glob: "**/*.py"
|
||||||
|
run: "mypy {staged_files}"
|
||||||
|
|||||||
Reference in New Issue
Block a user