Skip to content

style(tests): clear ruff I001 + format in test_verdict_parity#156

Merged
Antawari merged 1 commit into
mainfrom
ishtar/ruff-i001-test-verdict-parity
May 28, 2026
Merged

style(tests): clear ruff I001 + format in test_verdict_parity#156
Antawari merged 1 commit into
mainfrom
ishtar/ruff-i001-test-verdict-parity

Conversation

@Antawari
Copy link
Copy Markdown
Contributor

Summary

Three mechanical ruff fixes in tests/test_verdict_parity.py, no behavior change:

  • I001: drop a stray duplicate blank line between the import pytest block and the section comment that follows. This is the lint error that ruff check tests/ was tripping on every PR whose CI runs the full-tree lint gate.
  • Format consolidation: ruff format collapses two assertion-message f-strings (in test_severity_variants and test_finding_fields) from two lines to one each; both land well under the 100-char line limit after the collapse.

Caught while running CI on an unrelated feature branch — the gate currently blocks every PR whose branch CI runs the full ruff check src/ tests/ (this file has been red on main for a few days but the failure surfaces on branch CI, not on the merge that landed the original file).

Test plan

  • pytest tests/test_verdict_parity.py -q — 11 passed locally
  • ruff check tests/test_verdict_parity.py — All checks passed
  • ruff format --check tests/test_verdict_parity.py — already formatted
  • CI green on this branch

Three mechanical ruff fixes, no behavior change:

- I001: drop the duplicate blank line between the `import pytest`
  block and the section comment that follows.
- E501: ruff format consolidates two assertion-message f-strings
  in `test_severity_variants` and `test_finding_fields` from two
  lines to one each — both well under the 100-char line limit
  after the collapse.

Caught while running CI on an unrelated feature branch: the lint
gate trips on this file's existing state, blocking every PR whose
branch CI runs the full `ruff check src/ tests/`.
@Antawari Antawari merged commit 68eaab6 into main May 28, 2026
2 checks passed
@Antawari Antawari deleted the ishtar/ruff-i001-test-verdict-parity branch May 28, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant