Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: add trufflehog to precommit (#4252)

Kian Jones051ae461051f
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5be5b4ed9..288a92f06 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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 .'