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

Read-only mode #930

Closed opk12 closed 7 months ago

opk12 commented 7 months ago

I want to learn Python idiomatic constructs and lose bad habits, so I'd like to see a warning and fix it manually. The README seems to suggest that auto-fixing is the only mode of operation. I could fix, read the diff and undo the fix, but it would be handy to have a dedicated CLI option.

asottile commented 7 months ago

since you're learning: