asottile / pyupgrade

A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.
MIT License
3.5k stars 177 forks source link

How to check the version of `pyupgrade`? #919

Closed rafrafek closed 10 months ago

rafrafek commented 10 months ago

How to check the version of this tool? 😅

pyupgrade: error: unrecognized arguments: --version
hugovk commented 10 months ago

Here's one way:

❯ pip freeze | grep pyupgrade
pyupgrade==3.15.0
rafrafek commented 10 months ago

Thanks! In my case pipx list helped.