-
Notifications
You must be signed in to change notification settings - Fork 285
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
STY: Apply ruff/pyupgrade rule UP031 #3280
Conversation
New in ruff v0.4.2
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3280 +/- ##
=======================================
Coverage 73.84% 73.84%
=======================================
Files 56 56
Lines 4289 4289
=======================================
Hits 3167 3167
Misses 1122 1122 ☔ View full report in Codecov by Sentry. |
Fixing the |
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
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.
ISC001 should detect and fix them: https://docs.astral.sh/ruff/rules/single-line-implicit-string-concatenation/
Some more suggestions that can't be auto-fixed.
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Indeed, but |
It's a known ruff issue: astral-sh/ruff#9457 In the meantime, there's no better solution than explicitly running |
ISC001 Implicitly concatenated string literals on one line This rule is currently disabled because it conflicts with the formatter: astral-sh/ruff#8272
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
New in ruff v0.4.2.