Add flake8-bandit

This commit is contained in:
Alexander Hess 2026-11-28 02:17:51 +01:00
commit 2000ceca54
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -91,6 +91,7 @@ dev = [
# Code Analyzers
"flake8 (>=7.5.0,<8.0.0)",
"flake8-annotations (>=3.3.1,<4.0.0)",
"flake8-bandit (>=4.1.1,<5.0.0)",
"flake8-black (>=0.5.0,<0.6.0)",
"flake8-pyproject (>=1.2.4,<2.0.0)",
"flake8-pytest-style (>=2.2.0,<3.0.0)",
@ -244,8 +245,6 @@ per-file-ignores = [
"migrations/versions/*.py:ANN0,ANN2,S608",
# Type annotations are not strictly enforced.
"noxfile.py:ANN0,ANN2",
# No SQL injection as the inputs come from a safe source.
"src/velofy/forecasts/timify.py:S608",
# - ANN0, ANN2 => Type annotations are not strictly enforced.
# - D106 => The `Meta` class inside the factory_boy models do not need a docstring.
# - S101 => `assert` statements are ok in the test suite.