Rearrange git hooks
This commit is contained in:
12
lefthook.yml
12
lefthook.yml
@@ -9,12 +9,6 @@ templates:
|
|||||||
pre-commit:
|
pre-commit:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
- name: "gitleaks"
|
|
||||||
run: "gitleaks git --staged"
|
|
||||||
|
|
||||||
- name: "check secret files"
|
|
||||||
run: "python3 {av-hooks-dir}/pre-commit/check-secrets-encrypted-with-ansible-vault.py"
|
|
||||||
|
|
||||||
- name: "format python"
|
- name: "format python"
|
||||||
glob: "**/*.py"
|
glob: "**/*.py"
|
||||||
run: "black --quiet {staged_files}"
|
run: "black --quiet {staged_files}"
|
||||||
@@ -23,3 +17,9 @@ pre-commit:
|
|||||||
- name: "mypy"
|
- name: "mypy"
|
||||||
glob: "**/*.py"
|
glob: "**/*.py"
|
||||||
run: "mypy {staged_files}"
|
run: "mypy {staged_files}"
|
||||||
|
|
||||||
|
- name: "gitleaks"
|
||||||
|
run: "gitleaks git --staged"
|
||||||
|
|
||||||
|
- name: "check secret files"
|
||||||
|
run: "python3 {av-hooks-dir}/pre-commit/check-secrets-encrypted-with-ansible-vault.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user