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
isort and pre-commit - not only Python files are processed #1154
Comments
that is very strange indeed -- the can you run it's also possible you're using a really old pre-commit which doensn't understand |
Update 4.3.21
4.3.21-2
https://github.com/timothycrosley/isort/archive/4.3.21.zip |
ah that's what it is, the configuration for 4.3.21-2 is busted: https://github.com/timothycrosley/isort/blob/4.3.21-2/.pre-commit-hooks.yaml#L6 |
Well, at least my .po files are now sorted! :-) |
I was using pre-commit (as in pre-commit.com) as follows:
This worked perfectly.
Once I updated to 4.3.21-2, not only Python files, but also json, rst, po, mako, html, pot and cfg files were touched and modified by isort.
In the https://github.com/timothycrosley/isort/blob/develop/CHANGELOG.md I could not find an entry for 4.3.21-2 at all.
My current workaround is following config:
I am pretty new to both
pre-commit
andisort
- so maybe I miss something.Maybe I miss the point, but why would I want to use
isort
on a json or a po (translation) file?P.S.: @asottile
s pre-commit
s version is 2.0.1.The text was updated successfully, but these errors were encountered: