-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
mirrors-autopep8 usage (vs autopep8-wrapper) touches files that were not changed #336
Comments
Yeah there's probably going to be slight differences but The fortunate thing though, is now that The "printing the filename" bit is kind of unfortunate, I wish upstream autopep8 printed something, maybe that's proposable too. The old code was only printing because The historical context for why So I guess in conclusion, there isn't really anything actionable here -- other than suggesting some changes directly to autopep8 |
Anyway, thanks for the issue 🎉 -- since there's nothing actionable from the |
Thanks for the quick response + thorough context! I'll poke autopep8 and see what they're willing to do on both no touching unchanged files and logging some basic info on what changed. |
I'm running
pre-commit run --all-files
In the old way:
if autopep8 has no changes for a file, then that file was not modified. So autopep8 passing meant no files are modified.
In the new way:
if autopep8 has no changes, it still modifies the file. Here, autopep8 passing modifies every file.
By modify, I mean that the time column of
ls -l
changes. And in emacs, it will complain that files have changed on disk.Also, in the old way, autopep8 printed out the modified files:
Files were modified by this hook. Additional output:
(and then a list of files separated by newline).In the new way, it does not--just says
Files were modified by this hook.
The text was updated successfully, but these errors were encountered: