Commit e27493f
Include filename in nosec 'no failed test' warning (#1363)
* Include filename in nosec "no failed test" warning
The warning about a nosec comment with no matching failed test only
included the line number, making it hard to locate the issue in
multi-file scans. Add the filename so the warning reads:
nosec encountered (B608), but no failed test on file src/foo.py:42
Fixes #1269
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent b69b336 commit e27493f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
0 commit comments