Skip to content

Commit 63f6449

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 82a237e commit 63f6449

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
@@ -82,7 +82,12 @@ select = [
8282
# ruff
8383
"RUF",
8484
# flake8-bandit
85-
# "S", TODO: enable this and fix issues in a separate commit
85+
"S1",
86+
"S2",
87+
"S3",
88+
"S5",
89+
"S602",
90+
"S604",
8691
# flake8-simplify
8792
"SIM",
8893
# flake8-self

0 commit comments

Comments
 (0)