Skip to content

Commit

Permalink
Add detect secrets pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Oct 30, 2024
1 parent 26caf1c commit b908c10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion autogpt_platform/backend/backend/usecases/block_autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def create_test_graph() -> Graph:
Here are a couple of sample of the Block class implementation:
{"--------------\n".join([sample_block_codes[v] for v in sample_block_modules])}
{"--------------".join([sample_block_codes[v] for v in sample_block_modules])}
""",
},
)
Expand Down

0 comments on commit b908c10

Please sign in to comment.