Files
MSE-CyberSec-DevSecOps/.pre-commit-config.yaml
2025-04-15 21:38:06 +02:00

23 lines
576 B
YAML

repos:
- repo: https://github.com/pycqa/flake8
rev: '6.1.0' # Use the latest stable version
hooks:
- id: flake8
additional_dependencies: []
args: [--config=tox.ini] # Use the same config as in CI
- repo: https://github.com/pypa/pip-audit
rev: v2.9.0
hooks:
- id: pip-audit
args: ["./src"]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.2
hooks:
- id: gitleaks
ci:
# Leave pip-audit to only run locally and not in CI
# pre-commit.ci does not allow network calls
skip: [pip-audit]