Skip to content

Commit 7afd55f

Browse files
[pre-commit.ci] pre-commit suggestions (Lightning-AI#731)
1 parent 87df852 commit 7afd55f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ci:
2323

2424
repos:
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v5.0.0
26+
rev: v6.0.0
2727
hooks:
2828
- id: end-of-file-fixer
2929
- id: trailing-whitespace
@@ -51,7 +51,7 @@ repos:
5151
#args: ["--write-changes"] # uncomment if you want to get automatic fixing
5252

5353
- repo: https://github.com/astral-sh/ruff-pre-commit
54-
rev: v0.12.2
54+
rev: v0.13.3
5555
hooks:
5656
- id: ruff
5757
args: ["--fix"]
@@ -77,7 +77,7 @@ repos:
7777
args: ["--print-width=120"]
7878

7979
- repo: https://github.com/tox-dev/pyproject-fmt
80-
rev: v2.6.0
80+
rev: v2.7.0
8181
hooks:
8282
- id: pyproject-fmt
8383
additional_dependencies: [tox]

benchmarks/stream_raw_imagenet.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88

99
import torch
1010
import torchvision.transforms.v2 as T
11+
from litdata.streaming.raw_dataset import StreamingRawDataset
1112
from torch.utils.data import DataLoader
1213
from torchvision.io import ImageReadMode, decode_image, decode_jpeg
1314
from tqdm import tqdm
1415

15-
from litdata.streaming.raw_dataset import StreamingRawDataset
16-
1716

1817
def clear_cache_dir(cache_dir: str) -> None:
1918
"""Clear the cache directory."""

0 commit comments

Comments
 (0)