From ba7c5cdccb592fea0b91f0beddab78298c402182 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 22:22:26 +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/rhysd/actionlint: v1.7.7 → v1.7.12](https://github.com/rhysd/actionlint/compare/v1.7.7...v1.7.12) - [github.com/igorshubovych/markdownlint-cli: v0.45.0 → v0.48.0](https://github.com/igorshubovych/markdownlint-cli/compare/v0.45.0...v0.48.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.15.17](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.2...v0.15.17) --- .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 3d5aee9..466f005 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,18 +2,18 @@ fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-yaml - repo: https://github.com/rhysd/actionlint - rev: v1.7.7 + rev: v1.7.12 hooks: - id: actionlint args: [-ignore, SC] - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.45.0 + rev: v0.48.0 hooks: - id: markdownlint-fix args: [-c, configs/.markdownlint.yaml, --fix, --disable, MD028] @@ -24,7 +24,7 @@ repos: - id: typos - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.2 + rev: v0.15.17 hooks: # Run the formatter - id: ruff-format From 78f05f562fe81a40fff0410331adcfa20f17ff65 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 22:22:36 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- nlp_span_comparison/nlp_span_comparison.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/nlp_span_comparison/nlp_span_comparison.py b/nlp_span_comparison/nlp_span_comparison.py index 222720c..afc7cd9 100644 --- a/nlp_span_comparison/nlp_span_comparison.py +++ b/nlp_span_comparison/nlp_span_comparison.py @@ -155,18 +155,22 @@ def _(index, mo, set_choices): model_A = mo.ui.button( label="Model A", on_change=lambda _: set_choices( - lambda v: v[: index.value] - + [{"index": index.value, "model": "A"}] - + v[index.value + 1 :] + lambda v: ( + v[: index.value] + + [{"index": index.value, "model": "A"}] + + v[index.value + 1 :] + ) ), ) model_B = mo.ui.button( label="Model B", on_change=lambda _: set_choices( - lambda v: v[: index.value] - + [{"index": index.value, "model": "B"}] - + v[index.value + 1 :] + lambda v: ( + v[: index.value] + + [{"index": index.value, "model": "B"}] + + v[index.value + 1 :] + ) ), ) mo.hstack([model_A, model_B], justify="space-around")