diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17c99a38b..81daea13a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.8.6 hooks: - id: ruff args: @@ -18,12 +18,12 @@ repos: hooks: - id: cmake-format - repo: https://github.com/pappasam/toml-sort - rev: v0.23.1 + rev: v0.24.2 hooks: - id: toml-sort-fix exclude: pixi.toml - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.1 + rev: v19.1.6 hooks: - id: clang-format args: diff --git a/unittest/python/test_std_array.py b/unittest/python/test_std_array.py index 51d2851f6..ea0b89d3f 100644 --- a/unittest/python/test_std_array.py +++ b/unittest/python/test_std_array.py @@ -15,7 +15,7 @@ ref = [1, 2, 3] assert len(ref[1:2]) == 1 # sanity check -assert len(_ints_slice) == 2, "Slice size should be 1, got %d" % len(_ints_slice) +assert len(_ints_slice) == 2, f"Slice size should be 1, got {len(_ints_slice)}" assert _ints_slice[0] == 2 assert _ints_slice[1] == 3