From 85050b7d52f78198871fb8e09bb73dd8ee0a02e8 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Fri, 7 Nov 2025 14:12:37 +0100 Subject: [PATCH 1/2] CI: update ruff and codespell --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4b10603..4c7c301 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,13 +13,13 @@ default_language_version: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.0 + rev: v0.13.3 hooks: - id: ruff args: [ --fix ] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell additional_dependencies: From 56ee7eef98726fbeb740d669ab5971e54d8231b2 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Fri, 7 Nov 2025 14:13:01 +0100 Subject: [PATCH 2/2] Adjust code --- audplot/core/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audplot/core/api.py b/audplot/core/api.py index e2083e4..9a28a12 100644 --- a/audplot/core/api.py +++ b/audplot/core/api.py @@ -160,7 +160,9 @@ def confusion_matrix( .. plot:: :context: close-figs - >>> confusion_matrix(truth, prediction, label_aliases={0: "A", 1: "B", 2: "C"}) + >>> confusion_matrix( + ... truth, prediction, label_aliases={0: "A", 1: "B", 2: "C"} + ... ) """ # noqa: E501 ax = ax or plt.gca()