-
Notifications
You must be signed in to change notification settings - Fork 252
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
Replace legacy string formatting with f-strings #889
Comments
I'll work on this: we can make use of https://pypi.org/project/flake8-use-fstring/ (https://github.com/MichaelKim0407/flake8-use-fstring). I'll see when I can get a PR up. |
You should probably get PyCharm then. It can autoconvert all sorts of string formatting, including the obscure options that we use, to f-strings. |
Alright, I might look into it. Alternatively... I might see if there's something for Atom. |
Here's an example: pycharm.mp4 |
Ooh, that is quite nice... maybe I'll have to install it if I don't find anything for atom... |
We can replace all legacy
%
-formatting and the majority of the slightly newer.format
formatting with f-strings. This is a bit of a long term project and we don't expect it to be done anytime soon.The text was updated successfully, but these errors were encountered: