mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-12-01 23:11:35 +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:
@@ -2,16 +2,21 @@
|
||||
|
||||
import logging
|
||||
import os
|
||||
import yaml
|
||||
import shlex
|
||||
|
||||
import yaml
|
||||
from funcy import cached_property
|
||||
from pathspec.patterns import GitWildMatchPattern
|
||||
|
||||
from dvc.exceptions import GitHookAlreadyExistsError
|
||||
from dvc.progress import Tqdm
|
||||
from dvc.scm.base import Base
|
||||
from dvc.scm.base import CloneError, FileNotInRepoError, RevError, SCMError
|
||||
from dvc.scm.base import (
|
||||
Base,
|
||||
CloneError,
|
||||
FileNotInRepoError,
|
||||
RevError,
|
||||
SCMError,
|
||||
)
|
||||
from dvc.scm.git.tree import GitTree
|
||||
from dvc.utils import fix_env, is_binary, relpath
|
||||
from dvc.utils.fs import path_isin
|
||||
|
||||
+1
-2
@@ -1,12 +1,11 @@
|
||||
import io
|
||||
import errno
|
||||
import io
|
||||
import os
|
||||
|
||||
from dvc.exceptions import DvcException
|
||||
from dvc.scm.tree import BaseTree
|
||||
from dvc.utils import relpath
|
||||
|
||||
|
||||
# see git-fast-import(1)
|
||||
GIT_MODE_DIR = 0o40000
|
||||
GIT_MODE_FILE = 0o644
|
||||
|
||||
Reference in New Issue
Block a user