-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
lint: isort pre-commit & misc improvements #3749
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to have this long time ago. Thanks @casperdcl 🎉
I have a question though: as this is run in virtualenv created by pre-commit, how'll this find the difference between third party and dvc
?
good point @skshetry - just added a commit |
not sure why travis fails... Works fine locally:
|
It's because of |
@skshetry Not because of dvc hook at all, you can see isort pre-commit hook failing. It reformats the code. Not sure what's up. Maybe sort version or something. |
@casperdcl Probably should also add isort to restyled config. |
No, that only fails locally on mutli-core machines where the diff touches more files than there are hyperthreads. Adding
exactly
I pinned it though (to
will do. |
@casperdcl Yeah, sounds likely. Could merge as is (even if it fails) and deal with it on top. |
This reverts commit 11db0fd.
@efiop based on https://github.com/iterative/dvc/runs/650806804 this is good to merge |
import
spre-commit
hook.flake8
root clutter tosetup.cfg
isort
torestyled
fix orignore CI & restyled failing forisort
(maybe only an issue for this first PR adding config?)maybeopen issue for DVC pre-commit failing for more files than hyperthreads? -> pre-commit: fails for multi-file patches #3751