Skip to content

Add RUF028 class signature regression test#25207

Open
ya-nsh wants to merge 1 commit into
astral-sh:mainfrom
ya-nsh:fix/ruf028-class-signature
Open

Add RUF028 class signature regression test#25207
ya-nsh wants to merge 1 commit into
astral-sh:mainfrom
ya-nsh:fix/ruf028-class-signature

Conversation

@ya-nsh
Copy link
Copy Markdown

@ya-nsh ya-nsh commented May 17, 2026

Summary

  • add a regression fixture for fmt: off comments inside class signatures
  • keep a valid fmt: off class-body comment fixture to cover the statement-boundary case

Closes #20425.

Test Plan

  • cargo test -p ruff_linter --lib rule_invalidformattersuppressioncomment_path_new_ruf028_py_expects --features test-rules -- --nocapture

@astral-sh-bot astral-sh-bot Bot requested a review from ntBre May 17, 2026 07:54
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.

RUF028: fmt: on/off comments around class signature not flagged as invalid

2 participants