Skip to content

refactor: reformat Python code using Python 3.6+ syntax#27

Open
shuuji3 wants to merge 2 commits intosystemcatch:masterfrom
shuuji3:refactor/reformat-py36+
Open

refactor: reformat Python code using Python 3.6+ syntax#27
shuuji3 wants to merge 2 commits intosystemcatch:masterfrom
shuuji3:refactor/reformat-py36+

Conversation

@shuuji3
Copy link

@shuuji3 shuuji3 commented Jul 18, 2022

Hello, I knew this library through the electricity-map. 🙂

resolves #15

This PR apply pyupgrade with python 3.6+ option so that it can use f-string as well as other simpler expressions.

I run pyupgrade with this command: pipx run pyupgrade --py36-plus *.py.

Also, I updated tox.ini config.

shuuji3 added 2 commits July 18, 2022 19:21
I run `pyupgrade` with this command: `pipx run pyupgrade --py36-plus *.py`.
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.

Use f-strings once Python 3.5 reaches EOL

1 participant

Comments