Skip to content

Enable more ruff#1169

Merged
tysmith merged 5 commits into
masterfrom
enable-more-ruff
May 5, 2026
Merged

Enable more ruff#1169
tysmith merged 5 commits into
masterfrom
enable-more-ruff

Conversation

@tysmith
Copy link
Copy Markdown
Contributor

@tysmith tysmith commented Apr 29, 2026

This set of rules will help maintain a high standard of code quality and act as guardrails for LLMs.

tysmith added 2 commits April 28, 2026 15:59
This set of rules will help maintain a high standard of code
quality and act as guardrails for LLMs.
@tysmith tysmith requested a review from a team as a code owner April 29, 2026 01:00
@sentry
Copy link
Copy Markdown

sentry Bot commented Apr 29, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.33%. Comparing base (5ea0a6a) to head (c019a67).

Files with missing lines Patch % Lines
server/crashmanager/views.py 0.00% 10 Missing ⚠️
FTB/Signatures/Matchers.py 0.00% 4 Missing ⚠️
...manager/SourceCodeProvider/HGSourceCodeProvider.py 20.00% 4 Missing ⚠️
Collector/Collector.py 75.00% 3 Missing ⚠️
...anager/SourceCodeProvider/GITSourceCodeProvider.py 0.00% 3 Missing ⚠️
...r/ec2spotmanager/CloudProvider/GCECloudProvider.py 0.00% 3 Missing ⚠️
FTB/Running/PersistentApplication.py 66.66% 2 Missing ⚠️
...rver/ec2spotmanager/CloudProvider/CloudProvider.py 0.00% 2 Missing ⚠️
server/server/settings.py 0.00% 2 Missing ⚠️
server/server/utils.py 33.33% 2 Missing ⚠️
... and 5 more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1169   +/-   ##
=======================================
  Coverage   63.33%   63.33%           
=======================================
  Files         177      177           
  Lines       12186    12176   -10     
  Branches      551      551           
=======================================
- Hits         7718     7712    -6     
+ Misses       4434     4430    -4     
  Partials       34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@jschwartzentruber jschwartzentruber left a comment

Choose a reason for hiding this comment

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

lgtm besides suggestions

Comment thread Collector/Collector.py
# Now clean the signature directory, only deleting signatures and metadata
for sigFile in os.listdir(self.sigCacheDir):
if sigFile.endswith(".signature") or sigFile.endswith(".metadata"):
if sigFile.endswith((".signature", ".metadata")):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

TIL .. this should all be pathlib, but that's another problem

Comment thread FTB/Running/GDB.py
elif isARM64():
# ARM64 has GPRs from x0 to x30
regs = ["x" + str(x) for x in range(0, 31)]
regs = ["x" + str(x) for x in range(31)]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know this is all auto-fixes, but this should be an f-string (here and in RegisterHelper)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes there are a lot of potential f-string fixes. They can be addressed in another PR.

@tysmith tysmith merged commit c0edb96 into master May 5, 2026
12 of 13 checks passed
@tysmith tysmith deleted the enable-more-ruff branch May 5, 2026 15:27
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