Skip to content

Commit

Permalink
Enable ruff rule flake8-bandit (S)
Browse files Browse the repository at this point in the history
See: https://docs.astral.sh/ruff/rules/#flake8-bandit-s

Ignore warning about "asserts" which is not useful.
  • Loading branch information
skangas authored and gauteh committed Dec 13, 2023
1 parent 513ef84 commit 7cedb03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ target-version = "py39"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "I", "UP", "C4", "EXE", "SIM", "PERF"]
select = ["E4", "E7", "E9", "F", "I", "UP", "S", "C4", "EXE", "SIM", "PERF"]
ignore = [
"E501", # Line too long
"E741", # Ambiguous variable name: `l`
"F403", # `from .gmailieer import *` used; unable to detect undefined names
"S101", # Use of `assert` detected
]

# Allow fix for all enabled rules (when `--fix`) is provided.
Expand Down

0 comments on commit 7cedb03

Please sign in to comment.