GRM-24: chore: add bandit dependency, Makefile target and pre-commit hook
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user