Skip to content
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

Apply ruff/pyupgrade rules (UP) #345

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented May 4, 2024

f-strings were introduced in Python 3.6. Do you really want to keep Python 3.4 compatibility?

@DimitriPapadopoulos DimitriPapadopoulos changed the title Apply ruff/pyupgrade rule UP032 - format() → f-strings Apply ruff/pyupgrade rule UP032 - format() → f-strings (Python 3.6) May 4, 2024
@DimitriPapadopoulos DimitriPapadopoulos changed the title Apply ruff/pyupgrade rule UP032 - format() → f-strings (Python 3.6) Apply ruff/pyupgrade rule UP032 - format() → f-strings May 4, 2024
UP008 Use `super()` instead of `super(__class__, self)`
UP024 Replace aliased errors with `OSError`
UP031 Use format specifiers instead of percent format
UP032 Use f-string instead of `format` call
UP036 Version block is outdated for minimum Python version
@DimitriPapadopoulos DimitriPapadopoulos changed the title Apply ruff/pyupgrade rule UP032 - format() → f-strings Apply ruff/pyupgrade rules (UP) Oct 5, 2024
@martinblech martinblech merged commit 16adb5a into martinblech:master Oct 8, 2024
7 checks passed
@martinblech
Copy link
Owner

Thank you!

@DimitriPapadopoulos DimitriPapadopoulos deleted the pyupgrade branch October 8, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants