Bug#988658: RFP: python3-pyupgrade -- Automatically upgrade syntax for newer versions of the Python language
Package: wnpp
Severity: wishlist
X-Debbugs-Cc: debian-python@lists.debian.org
* Package name : python3-pyupgrade
Version : 2.16.0
Upstream Author : Anthony Sottile
* URL : https://github.com/asottile/pyupgrade
* License : BSD
Programming Lang: Python
Description : Automatically upgrade syntax for newer versions of the Python language
This helper script can help you normalize your Python source code
by rewriting parts of your code to use the latest syntax improvements.
Some examples from the README:
set([]) # set()
'{0} {1}'.format(1, 2) # '{} {}'.format(1, 2)
x is 5 # x == 5
'{foo} {bar}'.format(foo=foo, bar=bar) # f'{foo} {bar}'
I discovered this tool by reading some documentation and I'd like
it to be available in Debian so that I can try it and use it :-)
ccing debian-python@lists.debian.org in the hope to catch the attention of
someone with more time than me.
Thank you!
--
Raphaël Hertzog
Reply to: