@@ -110,6 +110,7 @@ select = [
110110 " PLC0415" , # pylint-convention: import-outside-toplevel - enforce imports at module level
111111 " ANN" , # flake8-annotations: enforces type annotations
112112 " DTZ" , # flake8-datetimez: enforces timezone-aware datetime usage
113+ " S101" , # flake8-bandit: detects use of assert in production code
113114]
114115ignore = [
115116 " E203" , # whitespace before ':' - conflicts with Black formatter
@@ -214,8 +215,8 @@ split-on-trailing-comma = true
214215# - Client func vfolder has progress printing
215216"src/ai/backend/client/func/vfolder.py" = [" T20" ]
216217# - Alembic migrations may print progress and have standard signatures
217- "src/ai/backend/*/models/alembic/**/*.py" = [" T20" , " ANN" , " PLC0415" ]
218- "src/ai/backend/*/*/models/alembic/**/*.py" = [" T20" , " ANN" , " PLC0415" ]
218+ "src/ai/backend/*/models/alembic/**/*.py" = [" T20" , " ANN" , " PLC0415" , " S101 " ]
219+ "src/ai/backend/*/*/models/alembic/**/*.py" = [" T20" , " ANN" , " PLC0415" , " S101 " ]
219220# - Model modules may have circular dependencies between Row classes
220221"src/ai/backend/*/models/**/*.py" = [" PLC0415" ]
221222"src/ai/backend/*/*/models/**/*.py" = [" PLC0415" ]
@@ -255,8 +256,8 @@ split-on-trailing-comma = true
255256"src/ai/backend/logging/logger.py" = [" PLC0415" ]
256257"src/ai/backend/logging/utils.py" = [" PLC0415" ]
257258# - Test files may use print for debugging and have flexible type annotations
258- "tests/**/*.py" = [" T20" , " ANN" ]
259- "src/ai/backend/test/**/*.py" = [" T20" , " ANN" ]
259+ "tests/**/*.py" = [" T20" , " ANN" , " S101 " ]
260+ "src/ai/backend/test/**/*.py" = [" T20" , " ANN" , " S101 " ]
260261# - Type stub files have their own conventions
261262"stubs/**/*.pyi" = [" ANN" ]
262263# - Vec2D class intentionally overrides tuple operators with incompatible return types for vector math
0 commit comments