GRM-24: chore: add bandit dependency, Makefile target and pre-commit hook

This commit is contained in:
Emil Simeonov
2026-06-19 21:13:21 +02:00
parent fefddda715
commit e9c0f22fc0
3 changed files with 13 additions and 1 deletions
+8
View File
@@ -32,6 +32,14 @@ repos:
pass_filenames: false pass_filenames: false
stages: [pre-commit] stages: [pre-commit]
- id: lint-bandit
name: bandit security scan
entry: make lint-bandit
language: system
types: [python]
pass_filenames: false
stages: [pre-commit]
- id: ansible-lint - id: ansible-lint
name: ansible-lint name: ansible-lint
entry: make ansible-lint entry: make ansible-lint
+4 -1
View File
@@ -83,7 +83,10 @@ lint-format:
typecheck: typecheck:
$(BIN)/pyright $(BIN)/pyright
lint: lint-ruff lint-format typecheck lint: lint-ruff lint-format typecheck lint-bandit
lint-bandit:
$(BIN)/bandit -r src/ scripts/
ansible-lint: ansible-lint:
$(BIN)/ansible-lint ansible/ $(BIN)/ansible-lint ansible/
+1
View File
@@ -32,6 +32,7 @@ dev = [
"molecule>=26.4.0", "molecule>=26.4.0",
"molecule-docker>=2.1.0", "molecule-docker>=2.1.0",
"ansible-lint>=26.4.0", "ansible-lint>=26.4.0",
"bandit>=1.8.2",
"pre-commit>=4.6.0", "pre-commit>=4.6.0",
# Non-Python dev dependency: checkmake (Makefile linter) # Non-Python dev dependency: checkmake (Makefile linter)
# Install via: go install github.com/mrtazz/checkmake/cmd/checkmake@latest # Install via: go install github.com/mrtazz/checkmake/cmd/checkmake@latest