refactor(ruff): enable ruff preview rules (#2120)#2140
Open
cfxegbert wants to merge 1 commit into
Open
Conversation
…2120) Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2140 +/- ##
==========================================
- Coverage 61.31% 61.30% -0.02%
==========================================
Files 164 164
Lines 20568 20561 -7
Branches 3575 3575
==========================================
- Hits 12611 12604 -7
Misses 7085 7085
Partials 872 872 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Branch summary:
refactor/2120-enable-preview-ruff-rules1 commit ahead of
main:d16f4b39 refactor(ruff): enable ruff preview rules (#2120)34 files changed, +51 / −62 lines.
Main change
Enables Ruff’s preview rules in
ruff.toml:The rest of the diff is code updated to satisfy those stricter checks.
Fix categories
flags: int=0→flags: int = 0across many rezgui widgets, models, and windows — includingContextSubWindow.py#print→# print,#self→# self,#no_color→# no_color#===→# ===inrex.py,memory.pyimport oswhere onlyos.pathis used (util.py,backcompat.py, build plugins, shell plugins,bundle.py)App.py,ContextToolsWidget.py; cleaned inline comments inToolWidgetcalls###→# ##in_entry_points.py; blank line after imports inChangelogEdit.py; indentation fix inVariantCellWidget.py; joined split string inplatform_.pyI used some help from an LLM to create the summary for this PR