Skip to content

Commit efe5da0

Browse files
[pre-commit.ci] pre-commit autoupdate (#598)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.270 → v0.0.272](astral-sh/ruff-pre-commit@v0.0.270...v0.0.272) * FIx PLC0208 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: daavoo <[email protected]>
1 parent 6a96613 commit efe5da0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
additional_dependencies: ["tomli"]
3535
- repo: https://github.com/charliermarsh/ruff-pre-commit
3636
# Ruff version.
37-
rev: 'v0.0.270'
37+
rev: 'v0.0.272'
3838
hooks:
3939
- id: ruff
4040
- repo: https://github.com/executablebooks/mdformat

src/dvclive/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def standardize_metric_name(metric_name: str, framework: str) -> str:
5151
metric_name = metric_name.replace("valid_", "eval/")
5252

5353
elif framework == "dvclive.huggingface":
54-
for split in {"train", "eval"}:
54+
for split in ("train", "eval"):
5555
metric_name = metric_name.replace(f"{split}_", f"{split}/")
5656

5757
elif framework == "dvclive.keras":

tests/test_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_report_init(monkeypatch, mocker):
8282
live = Live()
8383
assert live._report_mode == "html"
8484

85-
for report in {None, "html", "md"}:
85+
for report in (None, "html", "md"):
8686
live = Live(report=report)
8787
assert live._report_mode == report
8888

0 commit comments

Comments
 (0)