mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
ruff: ignore complex functions and remove dvc.utils.fs.makedirs (#8795)
We may want to prevent any new functions from getting complex.
This commit is contained in:
@@ -6,7 +6,7 @@ from scmrepo.git import Git
|
||||
from dvc.external_repo import CLONES, external_repo
|
||||
from dvc.testing.tmp_dir import make_subrepo
|
||||
from dvc.utils import relpath
|
||||
from dvc.utils.fs import makedirs, remove
|
||||
from dvc.utils.fs import remove
|
||||
from dvc_data.hashfile.build import build
|
||||
from dvc_data.hashfile.transfer import transfer
|
||||
|
||||
@@ -200,7 +200,7 @@ def test_subrepos_are_ignored(tmp_dir, erepo_dir):
|
||||
# clear cache to test saving to cache
|
||||
cache_dir = tmp_dir / repo.odb.local.path
|
||||
remove(cache_dir)
|
||||
makedirs(cache_dir)
|
||||
os.makedirs(cache_dir)
|
||||
|
||||
staging, _, obj = build(
|
||||
repo.odb.local,
|
||||
|
||||
Reference in New Issue
Block a user