Files
pet-project-server/lefthook.yml
Anton Vakhrushev acf599f905
Some checks failed
Linting / YAML Lint (push) Failing after 8s
Linting / Ansible Lint (push) Successful in 18s
Lefthook: check py files with mypy
2025-12-20 11:38:14 +03:00

25 lines
552 B
YAML

# Refer for explanation to following link:
# https://lefthook.dev/configuration/
glob_matcher: doublestar
templates:
av-hooks-dir: "/home/av/projects/private/git-hooks"
pre-commit:
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"
glob: "**/*.py"
run: "black --quiet {staged_files}"
- name: "mypy"
glob: "**/*.py"
run: "mypy {staged_files}"