feat: add trufflehog to precommit (#4252)

* add trufflehog

* add to readme

* use their docs
This commit is contained in:
Kian Jones
2025-08-27 15:33:33 -07:00
committed by GitHub
parent 238dac2482
commit f5931f3a2f

View File

@@ -11,6 +11,11 @@ repos:
- repo: local
hooks:
- id: trufflehog
name: TruffleHog
entry: bash -c 'trufflehog git file://. --since-commit HEAD --results=verified,unknown --fail'
language: system
stages: ["pre-commit", "pre-push"]
- id: autoflake
name: autoflake
entry: bash -c '[ -d "apps/core" ] && cd apps/core; uv run autoflake --remove-all-unused-imports --remove-unused-variables --in-place --recursive --ignore-init-module-imports .'