-
Notifications
You must be signed in to change notification settings - Fork 88
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
Change occurrences of format() to f-strings #439
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #439 +/- ##
==========================================
- Coverage 99.91% 99.91% -0.01%
==========================================
Files 59 59
Lines 2339 2334 -5
==========================================
- Hits 2337 2332 -5
Misses 2 2
|
4e24e85
to
6f37b35
Compare
6f37b35
to
cb19741
Compare
d781c17
to
7261c1e
Compare
Looks good in theory, but is there a ruff rule (or similar) we can enable to automate making sure this change stays in the future? |
66fec9b
to
cecee04
Compare
I have enabled the relevant ruff rules A small part of the changes is manual, because ruff currently doesn't catch all issues. |
67757e1
to
ba8e691
Compare
ba8e691
to
2831bac
Compare
UP006 Use `tuple` instead of `Tuple` for type annotation UP035 `typing.Dict` is deprecated, use `dict` instead UP035 `typing.Tuple` is deprecated, use `tuple` instead UP035 `typing.Type` is deprecated, use `type` instead
2831bac
to
367e575
Compare
Also change one occurrence of
%
toformat()
, as changing to an f-string would result in a very long line.TODO: