lint: isort pre-commit & misc improvements (#3749)

* test: clean flake8 config root clutter

* test: pre-commit: add isort

Compatible with black (see https://github.com/timothycrosley/isort/issues/694)

* lint: reorder imports

* lint: more complex imports

* lint: fix deepsource

* config: isort: add first party dvc

* tests: restyled: add isort

* temp commit to revert before merge

* Revert "temp commit to revert before merge"

This reverts commit 11db0fd8e95fe891597cbb9bf804480909b19e24.
This commit is contained in:
Casper da Costa-Luis
2020-05-06 23:56:07 +03:00
committed by GitHub
parent e3831066de
commit 2bb7257a06
190 changed files with 452 additions and 525 deletions
+12 -9
View File
@@ -12,15 +12,18 @@ from dvc.path_info import PathInfo
from dvc.scm.tree import WorkingTree
from dvc.system import System
from dvc.utils import relpath
from dvc.utils.fs import BasePathNotInCheckedPathException
from dvc.utils.fs import copyfile
from dvc.utils.fs import contains_symlink_up_to
from dvc.utils.fs import get_inode
from dvc.utils.fs import get_mtime_and_size
from dvc.utils.fs import move
from dvc.utils.fs import path_isin, remove
from dvc.utils.fs import makedirs
from dvc.utils.fs import walk_files
from dvc.utils.fs import (
BasePathNotInCheckedPathException,
contains_symlink_up_to,
copyfile,
get_inode,
get_mtime_and_size,
makedirs,
move,
path_isin,
remove,
walk_files,
)
from tests.basic_env import TestDir
+6 -6
View File
@@ -1,18 +1,18 @@
import re
import os
import re
import pytest
from dvc.path_info import PathInfo
from dvc.utils import (
file_md5,
dict_sha256,
resolve_output,
file_md5,
fix_env,
relpath,
to_chunks,
tmp_fname,
parse_target,
relpath,
resolve_output,
tmp_fname,
to_chunks,
)