From b2422bd9b200a6723ca643797bf9d1524328c293 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:14:41 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.3 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.3...v0.15.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.1.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1568ab1..da70278 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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"] From 12fa946d0f670a9e56b8b754db031bc2e1ca9390 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:15:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- train/run.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/train/run.py b/train/run.py index 30a742e..873cfba 100644 --- a/train/run.py +++ b/train/run.py @@ -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