-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Recursive mode? #46
Comments
instead I'd suggest leveraging pre-commit -- implementing |
and if you need a "run once" mode, I'd suggest |
Oh that's neat! I didn't know about the |
To offer some contrast, I think using https://pre-commit.com/ opens a whole can of worms, and it's shameless to need to require it. The following is simple and works in Bash: shopt -s globstar
pyupgrade ./**/*.py |
Currently I run pyupgrade with something like
find ... | xargs pyupgrade
. A recursive flag to drill down directories would be nice (and in line with a lot of other formatters like black, yapf, and isort).The text was updated successfully, but these errors were encountered: