-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
RFE: --diff and --recursive #59
Comments
The intention is to run the tool through pre-commit which means every tool in the world doesn't have to reimplement:
I don't have an interest in supporting these complicated options in each and every tool, See also:
|
Fair enough. :) |
TIL |
You can always use find . -name '*.py' -not -path "./.venv/*" -exec add-trailing-comma --py36-plus {} + |
But what about Windows? For example, I have 2 folders:
and it's good. I'm sure that the |
on windows you necessarily have both python, bash, and coreutils for |
My colleagues and I use the same repository, the same environment, and the same |
no: #59 (comment) |
I think the following would be some good enhancements to this tool:
--diff
like isort, which prints the suggested changes on stdout, instead of modifying the files.This is great for CI checks where a contributor gets to see the required changes to fix the situation directly.
--recursive
option, to specify an entire project directory without globs.This would make CLI invocations easier.
I'll be happy to write PRs for them if @asottile thinks they're reasonable.
The text was updated successfully, but these errors were encountered: