asottile / pyupgrade

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

Is there a way to use only certain feature? #986

Closed SohanTirpude closed 3 weeks ago

SohanTirpude commented 3 weeks ago

Hello world,

Instead of running pre-commit on all feature provided by pyupgrade, I want to run only for a few or just one. For example: I want to use only for Invalid escape sequences in my code base. Is it possible to use it for a certain features like this? Sorry, I could not find any help on this. Kindly let me know if there is any.

Thank you.

asottile commented 3 weeks ago

there intentionally is not as indicated in a bunch of duplicate issues