diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 68492f03..2c12d194 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.15.9 hooks: - id: ruff args: [--fix] @@ -23,14 +23,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell exclude_types: [json] args: [--check-filenames] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v1.20.0 hooks: - id: mypy exclude: (tests|examples)/ @@ -42,7 +42,7 @@ repos: - id: format-ipy-cells - repo: https://github.com/kynan/nbstripout - rev: 0.8.2 + rev: 0.9.1 hooks: - id: nbstripout args: [--drop-empty-cells] diff --git a/examples/matbench_example/train_wrenformer.py b/examples/matbench_example/train_wrenformer.py index 712e7992..74f85638 100644 --- a/examples/matbench_example/train_wrenformer.py +++ b/examples/matbench_example/train_wrenformer.py @@ -28,7 +28,7 @@ epochs = 10 folds = list(range(5)) timestamp = f"{datetime.now():%Y-%m-%d@%H-%M-%S}" -today = timestamp.split("@")[0] +today = timestamp.split("@", maxsplit=1)[0] # job_name unlike run_name doesn't include dataset and fold since not yet known without # SLURM_ARRAY_TASK_ID job_name = f"matbench-wrenformer-robust-{epochs=}"