Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#598)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and daavoo authored Jun 13, 2023
1 parent 6a96613 commit efe5da0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
additional_dependencies: ["tomli"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.270'
rev: 'v0.0.272'
hooks:
- id: ruff
- repo: https://github.com/executablebooks/mdformat
Expand Down
2 changes: 1 addition & 1 deletion src/dvclive/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def standardize_metric_name(metric_name: str, framework: str) -> str:
metric_name = metric_name.replace("valid_", "eval/")

elif framework == "dvclive.huggingface":
for split in {"train", "eval"}:
for split in ("train", "eval"):
metric_name = metric_name.replace(f"{split}_", f"{split}/")

elif framework == "dvclive.keras":
Expand Down
2 changes: 1 addition & 1 deletion tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_report_init(monkeypatch, mocker):
live = Live()
assert live._report_mode == "html"

for report in {None, "html", "md"}:
for report in (None, "html", "md"):
live = Live(report=report)
assert live._report_mode == report

Expand Down

0 comments on commit efe5da0

Please sign in to comment.