-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 199 ruff errors #689
Fix 199 ruff errors #689
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed every commits up one by one and all seems to make sens (even if I don't get the point of extracting a message from the exception?) and everything seems good 👍
On the other hand I don't understand why you haven't added ruff to the CI? Also the CI is failing weirdly for things unrelated to this PR I think?
I had the same reflection: Not sure why the CI failed on this PR while it passed for another one around the same time... 🤔 We did not add ruff to the CI because the remaining 176 errors contain non trivial changes and I don't know of any tool similar to |
it seem ruff and black don't agree on some formatting.
I have also checked running
edit: just noticed they are in the test directory |
I have pushed more ruff fix and a black run |
d3e7939
to
85d2541
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #689 +/- ##
==========================================
- Coverage 62.69% 62.32% -0.38%
==========================================
Files 69 69
Lines 6069 6073 +4
Branches 642 638 -4
==========================================
- Hits 3805 3785 -20
- Misses 2113 2139 +26
+ Partials 151 149 -2 ☔ View full report in Codecov by Sentry. |
The message should be passed as a variable. Obtained with `ruff check src --fix --unsafe-fixes`
4385d12
to
24c6594
Compare
Explain what problem this PR is resolving
The python linter ruff is not enable on this project because it raises too many errors to fix at once. At the time of writing,
ruff check src
raises 375 errors.Self proofreading checklist
Not relevant for these changes.
Changes
The first commit contains the result of
ruff check src --fix
, which contains safe automatic fixes to the codebase.I then ran
ruff check src --fix --unsafe-fixes
and added the following commits with the changes that I reviewed manually and deem ready to commit:How to test
Run
ruff check src
orhatch run testing:ruff
.ruff check src
on the code found 176 errors after the changes.