Skip to content

Commit edb5ee3

Browse files
[pre-commit.ci] pre-commit autoupdate (#806)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5](astral-sh/ruff-pre-commit@v0.3.4...v0.3.5) - [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.12.0 → v2.13.0](macisamuele/language-formatters-pre-commit-hooks@v2.12.0...v2.13.0) * Update live.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * pin mypy --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: skshetry <[email protected]>
1 parent e61a701 commit edb5ee3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: .pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ repos:
2929
.*\.ipynb
3030
)$
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.3.4"
32+
rev: "v0.3.5"
3333
hooks:
3434
- id: ruff
3535
args: [--fix, --exit-non-zero-on-fix]
3636
- id: ruff-format
3737
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
38-
rev: v2.12.0
38+
rev: v2.13.0
3939
hooks:
4040
- id: pretty-format-toml
4141
args: [--autofix, --no-sort]

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tests = [
5959
]
6060
dev = [
6161
"dvclive[all,tests]",
62-
"mypy>=1.1.1",
62+
"mypy==1.9.0",
6363
"types-PyYAML"
6464
]
6565
mmcv = ["mmcv"]

Diff for: src/dvclive/live.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def log_metric(
497497
def log_image(
498498
self,
499499
name: str,
500-
val: Union[np.ndarray, matplotlib.figure.Figure, PIL.Image, StrPath],
500+
val: Union[np.ndarray, matplotlib.figure.Figure, PIL.Image.Image, StrPath],
501501
):
502502
"""
503503
Saves the given image `val` to the output file `name`.

0 commit comments

Comments
 (0)