You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix spurious nosec warning on f-strings with specific test IDs
When a `# nosec B608` comment successfully suppressed an issue in an
f-string, bandit emitted a spurious warning "nosec encountered (B608),
but no failed test on line N" for the other Constant sub-nodes of the
JoinedStr that intentionally returned no result.
Track which (test_id, line) pairs have been suppressed and skip the
warning when the same test was already suppressed on the same line range.
Fixes#1204
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments