Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2024
1 parent 190bd91 commit a2153eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/dvclive/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ def _init_dvc_file(self) -> str:
return self._dvcyaml
raise InvalidDvcyamlError
if self._dvcyaml:
raise InvalidDvcyamlError("DVC yaml path is invalid. Must be a string or a Path object.")
raise InvalidDvcyamlError(
"DVC yaml path is invalid. Must be a string or a Path object."
)
return "dvc.yaml"

def _init_dvc_pipeline(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@ def test_test_mode(tmp_dir, monkeypatch, mocked_dvc_repo, dvcyaml_path):
assert live._dvc_file != "dvc.yaml"
assert live._save_dvc_exp is False
assert not os.path.exists("dir")
assert not os.path.exists(dvcyaml_path)
assert not os.path.exists(dvcyaml_path)

0 comments on commit a2153eb

Please sign in to comment.