Skip to content

fix: resolve ruff 0.15.0 lint violations#178

Merged
emilradix merged 2 commits into
mainfrom
rd-linting
Feb 16, 2026
Merged

fix: resolve ruff 0.15.0 lint violations#178
emilradix merged 2 commits into
mainfrom
rd-linting

Conversation

@r-dh
Copy link
Copy Markdown
Contributor

@r-dh r-dh commented Feb 13, 2026

Fix lint violations flagged by ruff 0.15.0

  • Simplify lambda x: chunk_spans.extend(x) to chunk_spans.extend (unnecessary lambda)
  • Replace x if x else y with idiomatic x or y
  • Remove redundant outer parentheses in expression
  • Move ChunkSpan import behind TYPE_CHECKING guard

All changes are mechanical lint fixes, there are no logic changes.

@emilradix
Copy link
Copy Markdown
Collaborator

@r-dh What order should I merge this and #175 in? I propose merging this and then you get rid of the ruff pin in #175?

@r-dh
Copy link
Copy Markdown
Contributor Author

r-dh commented Feb 16, 2026

That works for me!

Copy link
Copy Markdown
Collaborator

@emilradix emilradix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emilradix emilradix merged commit 8895270 into main Feb 16, 2026
4 checks passed
@emilradix emilradix deleted the rd-linting branch February 16, 2026 14:40
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.

2 participants