-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
Add ruff format & lint (isort only) #560
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #560 +/- ##
==========================================
+ Coverage 89.92% 90.43% +0.50%
==========================================
Files 31 31
Lines 1032 1087 +55
Branches 104 158 +54
==========================================
+ Hits 928 983 +55
Misses 69 69
Partials 35 35 ☔ View full report in Codecov by Sentry. |
raise ImproperlyConfigured( | ||
"The CONSTANCE_DATABASE_CACHE_BACKEND setting refers to a " | ||
'The CONSTANCE_DATABASE_CACHE_BACKEND setting refers to a ' | ||
"subclass of Django's local-memory backend (%r). Please " | ||
"set it to a backend that supports cross-process caching." | ||
% settings.DATABASE_CACHE_BACKEND) | ||
'set it to a backend that supports cross-process caching.' % settings.DATABASE_CACHE_BACKEND | ||
) |
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.
Should we take the opportunity to migrate this to a f-string?
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.
We should. There are linters for that in ruff. But to reduce complexity of reviewing process I've moved this out of scope of this PR.
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.
Looks like the start of a great refresh 🙏
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.
OK. than go next 😄
All code changes were made by ruff automatically and marked by it as safe