-
Notifications
You must be signed in to change notification settings - Fork 36
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
ci: enable pyupgrade rules in ruff #921
Conversation
yield ( | ||
warning_style(gettext(base_message)) | ||
+ f" {unused_snapshots} ({path_to_file})" |
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.
@@ -139,7 +139,7 @@ def __read_file_with_markers( | |||
missing_version = True | |||
|
|||
try: | |||
with open(filepath, "r", encoding=TEXT_ENCODING, newline=None) as f: | |||
with open(filepath, encoding=TEXT_ENCODING, newline=None) as f: |
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.
@@ -53,7 +53,7 @@ def _read_snapshot_collection(self, snapshot_location: str) -> "SnapshotCollecti | |||
return self.serializer_class.read_file(snapshot_location) | |||
|
|||
@classmethod | |||
@lru_cache() | |||
@lru_cache |
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.
c6edc58
to
adcba82
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #921 +/- ##
=======================================
Coverage 97.74% 97.74%
=======================================
Files 21 21
Lines 1596 1596
=======================================
Hits 1560 1560
Misses 36 36 🚨 Try these New Features:
|
adcba82
to
7fedbe9
Compare
Note: I think #896 can be closed when this is accepted/merged |
🎉 This PR is included in version 4.8.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
SSIA, see https://docs.astral.sh/ruff/rules/#pyupgrade-up
Related Issues
Checklist
Additional Comments
Needs: