Skip to content

Commit 6a6f7d7

Browse files
committed
chore: Enable subset of Ruff security rules
Enabled a subset of flake8-bandit security rules. Some S6* rules conflict with one another, with some requiring shell=True and others preventing it. We enable S602 and S604 to prevent it. Although we do use Mako templates, they are not used with any file types that can contain executable code, so S7* rules aren't useful.
1 parent 7a680db commit 6a6f7d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ select = [
8686
# ruff
8787
"RUF",
8888
# flake8-bandit
89-
# "S", TODO: enable this and fix issues in a separate commit
89+
"S1",
90+
"S2",
91+
"S3",
92+
"S5",
93+
"S602",
94+
"S604",
9095
# flake8-simplify
9196
"SIM",
9297
# flake8-self

0 commit comments

Comments
 (0)