refactor: enable additional ruff rules and fix violations#584
Merged
mergify[bot] merged 1 commit intomainfrom Feb 19, 2026
Merged
Conversation
Enable C4, FURB, PERF, PIE, RET, RUF, SIM, TCH rule sets. Key changes: - Remove all stale noqa comments across the codebase (RUF100) - Sort __all__ alphabetically (RUF022) - Remove superfluous else after return/raise (RET505/RET506) - Replace try/except/pass with contextlib.suppress (SIM105) - Move type-only imports into TYPE_CHECKING blocks (TC001/TC003) - Quote type expressions in typing.cast() calls (TC006) - Use list comprehension instead of loop-append (PERF401) - Fix Cyrillic character in docstring (RUF002) - Remove unnecessary int() wrapping round() (RUF046) - Replace dict() call with literal (C408) Ignored rules: - RUF003: ambiguous unicode in comments (copyright holder names) - RUF005: iterable unpacking vs concatenation (less readable) - RUF012: mutable class defaults (false positive on test fixtures) - SIM108: ternary expressions (less readable in context) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Change-Id: I88ea78e2254b8a9fee00743464e44e6d33400f47
7e052e1 to
ad044de
Compare
Contributor
Merge Queue StatusRule:
This pull request spent 25 seconds in the queue, including 3 seconds running CI. Required conditions to merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable C4, FURB, PERF, PIE, RET, RUF, SIM, TCH rule sets.
Key changes:
Ignored rules:
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com