Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Enable all bandit tests, add separate hook for tests (#1437)

ezraberchff174313ec18
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index caedebfe1..2ff01c857 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -51,11 +51,16 @@ repos:
rev: 1.7.0
hooks:
- id: bandit
+ name: bandit excluding the test directory
language_version: python3
exclude: ^test/
+ - id: bandit
+ name: bandit only the test directory
+ language_version: python3
+ files: ^test/
args:
- - -s
- - "B404,B602,B603,B607"
+ - --skip
+ - "B101,B311"
- repo: https://github.com/myint/docformatter
rev: v1.4