Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#320)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.7...v0.6.1)

* pacify linter

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Matt Seddon <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and mattseddon authored Aug 20, 2024
1 parent 77adf16 commit 6fdc261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
- id: trailing-whitespace
exclude: '^LICENSES/'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.5.7'
rev: 'v0.6.1'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion examples/get_started/torch-loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ def forward(self, x):
loss.backward()
optimizer.step()

print("[%d, %5d] loss: %.3f" % (epoch + 1, i + 1, loss.item()))
print(f"[{epoch + 1}, {i + 1:5d}] loss: {loss.item():.3f}")

print("Finished Training")

0 comments on commit 6fdc261

Please sign in to comment.