File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 57
57
rule : lint-types
58
58
- name : Lint other metrics
59
59
rule : lint-metrics
60
- - name : Scan AST security
60
+ - name : Scan AST
61
61
rule : scan-sec-ast
62
62
- name : Scan dependencies
63
63
rule : scan-sec-deps
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ scan-sec: scan-sec-ast scan-sec-deps
97
97
98
98
# Perform static security analysis on the AST.
99
99
scan-sec-ast :
100
- bandit -r {{ src-dir}}
100
+ bandit -c pyproject.toml - r {{ src-dir}}
101
101
102
102
# Scan dependencies for reported vulnerabilities.
103
103
scan-sec-deps :
Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ warn_unreachable = true
125
125
allow_untyped_globals = false
126
126
strict_equality = true
127
127
128
+ [tool .bandit ]
129
+ skips = [" B104" , " B404" , " B603" ]
130
+
128
131
[tool .black ]
129
132
line-length = 88
130
133
target-version = [" py312" ]
You can’t perform that action at this time.
0 commit comments