mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
nit: fit statement/expr in the same line instead of hanging (#10267)
The code are wrapped due to us using line-length=79 before, but now some of the code can easily fit in 88 chars. The formatter did not change this automatically when we changed line-length, because of magic trailing commas that gets added when they turn into multiple lines. Black/ruff wrapping them in parens and splitting them into multiple lines was making it difficult to read.
This commit is contained in:
+2
-10
@@ -14,16 +14,8 @@ from dvc_objects.errors import ObjectFormatError
|
||||
def test_cache(tmp_dir, dvc):
|
||||
cache1_md5 = "123"
|
||||
cache2_md5 = "234"
|
||||
cache1 = os.path.join(
|
||||
dvc.cache.local.path,
|
||||
cache1_md5[0:2],
|
||||
cache1_md5[2:],
|
||||
)
|
||||
cache2 = os.path.join(
|
||||
dvc.cache.local.path,
|
||||
cache2_md5[0:2],
|
||||
cache2_md5[2:],
|
||||
)
|
||||
cache1 = os.path.join(dvc.cache.local.path, cache1_md5[:2], cache1_md5[2:])
|
||||
cache2 = os.path.join(dvc.cache.local.path, cache2_md5[:2], cache2_md5[2:])
|
||||
tmp_dir.gen({cache1: "1", cache2: "2"})
|
||||
|
||||
assert os.path.exists(cache1)
|
||||
|
||||
Reference in New Issue
Block a user