From cdc739ea229ff019f0455227d2c5b295e713834a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:43:43 +0000 Subject: [PATCH 1/2] MAINT: upgrade lock files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/ComPWA/policy: 0.7.3 → 0.7.5](https://github.com/ComPWA/policy/compare/0.7.3...0.7.5) - [github.com/kynan/nbstripout: 0.8.1 → 0.8.2](https://github.com/kynan/nbstripout/compare/0.8.1...0.8.2) - [github.com/astral-sh/ruff-pre-commit: v0.14.0 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.0...v0.14.10) - [github.com/python-jsonschema/check-jsonschema: 0.34.1 → 0.36.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.34.1...0.36.0) - [github.com/streetsidesoftware/cspell-cli: v9.2.0 → v9.4.0](https://github.com/streetsidesoftware/cspell-cli/compare/v9.2.0...v9.4.0) - [github.com/editorconfig-checker/editorconfig-checker.python: 3.4.0 → 3.6.0](https://github.com/editorconfig-checker/editorconfig-checker.python/compare/3.4.0...3.6.0) - [github.com/ComPWA/pyright-pre-commit: v1.1.406 → v1.1.407](https://github.com/ComPWA/pyright-pre-commit/compare/v1.1.406...v1.1.407) - [github.com/astral-sh/uv-pre-commit: 0.9.2 → 0.9.21](https://github.com/astral-sh/uv-pre-commit/compare/0.9.2...0.9.21) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8febc20..573512e9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/ComPWA/policy - rev: 0.7.3 + rev: 0.7.5 hooks: - id: check-dev-files args: @@ -29,7 +29,7 @@ repos: - id: set-nb-display-name - repo: https://github.com/kynan/nbstripout - rev: 0.8.1 + rev: 0.8.2 hooks: - id: nbstripout args: @@ -57,7 +57,7 @@ repos: metadata.vscode - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.0 + rev: v0.14.10 hooks: - id: ruff-check args: [--fix] @@ -107,7 +107,7 @@ repos: args: [--in-place] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.34.1 + rev: 0.36.0 hooks: - id: check-jsonschema name: Check CITATION.cff @@ -120,12 +120,12 @@ repos: pass_filenames: false - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v9.2.0 + rev: v9.4.0 hooks: - id: cspell - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 3.4.0 + rev: 3.6.0 hooks: - id: editorconfig-checker name: editorconfig @@ -146,11 +146,11 @@ repos: )$ - repo: https://github.com/ComPWA/pyright-pre-commit - rev: v1.1.406 + rev: v1.1.407 hooks: - id: pyright - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.9.2 + rev: 0.9.21 hooks: - id: uv-lock From ebb38c2f5459ee40a19be5525feb2ffabf6727bb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:44:49 +0000 Subject: [PATCH 2/2] MAINT: implement pre-commit autofixes --- docs/adr/001/operators.ipynb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/adr/001/operators.ipynb b/docs/adr/001/operators.ipynb index d5bbc939..2d024dad 100644 --- a/docs/adr/001/operators.ipynb +++ b/docs/adr/001/operators.ipynb @@ -169,11 +169,15 @@ "source": [ "import operator\n", "\n", - "MAKE_BINARY = lambda opfn: lambda self, other: BinaryOp( # noqa: E731\n", - " self, asMagicNumber(other), opfn\n", + "MAKE_BINARY = lambda opfn: (\n", + " lambda self, other: BinaryOp( # noqa: E731\n", + " self, asMagicNumber(other), opfn\n", + " )\n", ")\n", - "MAKE_RBINARY = lambda opfn: lambda self, other: BinaryOp( # noqa: E731\n", - " asMagicNumber(other), self, opfn\n", + "MAKE_RBINARY = lambda opfn: (\n", + " lambda self, other: BinaryOp( # noqa: E731\n", + " asMagicNumber(other), self, opfn\n", + " )\n", ")\n", "\n", "\n",