Skip to content

Commit

Permalink
Exclude testing directory from flake8 hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Devasy23 committed Mar 24, 2024
1 parent 233bc41 commit c85f886
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ repos:
rev: 7.0.0
hooks:
- id: flake8
exclude: testing/*
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
Expand Down
17 changes: 17 additions & 0 deletions .pre-commit-security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit
files: \.py$ # Run Bandit only on Python files
additional_dependencies: [toml] # Additional dependencies required by Bandit
args: [--skip, B101] # Skip Bandit test B101 (assert statements)
- repo: https://github.com/safepass-dev/safepass-pre-commit
rev: v0.1.0
hooks:
- id: safepass
files: \.(py|yaml|yml|json)$ # Run Safepass on Python, YAML, and JSON files
- repo: https://github.com/pyupio/safety-hooks
rev: v2.0.3
hooks:
- id: safety

0 comments on commit c85f886

Please sign in to comment.