mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 15:28:28 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user