Skip to content

Commit 06736c5

Browse files
committed
use bandit via pantsbuild
1 parent aaa3b44 commit 06736c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pants.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ backend_packages = [
1212
"pants.backend.python",
1313
"pants.backend.experimental.python", # activates twine `publish` support
1414
"pants.backend.python.mixed_interpreter_constraints",
15+
"pants.backend.python.lint.bandit",
1516
"pants.backend.python.lint.black",
1617
"pants.backend.python.lint.flake8",
1718

@@ -83,6 +84,15 @@ root_patterns = [
8384
"/st2common/benchmarks/micro",
8485
]
8586

87+
[bandit]
88+
version = "bandit==1.7.0"
89+
args = [
90+
"-lll", # only HIGH severity level
91+
"--exclude",
92+
"build,dist",
93+
"--quiet", # only show output in the case of an error
94+
]
95+
8696
[black]
8797
lockfile = "lockfiles/black.lock"
8898
version = "black==22.3.0"

0 commit comments

Comments
 (0)