lint: isort pre-commit & misc improvements#3749
Conversation
There was a problem hiding this comment.
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 |
importspre-commithook.flake8root clutter tosetup.cfgisorttorestyledfix 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