Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
# list of supported hooks: https://pre-commit.com/hooks.html
- id: trailing-whitespace
Expand All @@ -14,12 +14,12 @@ repos:
# python code formatting/linting
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.12.3"
rev: "v0.15.0"
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
args: [--line-length, "100"]
Expand Down
6 changes: 2 additions & 4 deletions train/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
def get_wandb_logger(trainer: Trainer) -> WandbLogger:
"""Return the wandb logger from the trainer."""
if trainer.fast_dev_run:
raise Exception(
"Cannot use wandb callbacks since pytorch lightning \
disables loggers in `fast_dev_run=true` mode."
)
raise Exception("Cannot use wandb callbacks since pytorch lightning \
disables loggers in `fast_dev_run=true` mode.")

if isinstance(trainer.logger, WandbLogger):
return trainer.logger
Expand Down