Skip to content

Commit a2153eb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 190bd91 commit a2153eb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: src/dvclive/live.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ def _init_dvc_file(self) -> str:
272272
return self._dvcyaml
273273
raise InvalidDvcyamlError
274274
if self._dvcyaml:
275-
raise InvalidDvcyamlError("DVC yaml path is invalid. Must be a string or a Path object.")
275+
raise InvalidDvcyamlError(
276+
"DVC yaml path is invalid. Must be a string or a Path object."
277+
)
276278
return "dvc.yaml"
277279

278280
def _init_dvc_pipeline(self):

Diff for: tests/test_dvc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,4 @@ def test_test_mode(tmp_dir, monkeypatch, mocked_dvc_repo, dvcyaml_path):
230230
assert live._dvc_file != "dvc.yaml"
231231
assert live._save_dvc_exp is False
232232
assert not os.path.exists("dir")
233-
assert not os.path.exists(dvcyaml_path)
233+
assert not os.path.exists(dvcyaml_path)

0 commit comments

Comments
 (0)