feat(pre-commit): Detect secrets (#8507)

Add detect secrets pre commit
This commit is contained in:
Swifty
2024-10-31 08:49:50 +00:00
committed by GitHub
parent 74d8aa6d90
commit edaa938f99
2 changed files with 11 additions and 2 deletions

View File

@@ -9,6 +9,15 @@ repos:
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
name: Detect secrets
description: Detects high entropy strings that are likely to be passwords.
files: ^autogpt_platform/
stages: [push]
- repo: local
# isort needs the context of which packages are installed to function, so we
@@ -42,7 +51,7 @@ repos:
hooks:
- id: black
name: Lint (Black)
language_version: python3.10
language_version: python3.12
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0