From e4b0d17b4d7badab22481b5b56bd798960ca9d27 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 20:48:19 +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/asottile/pyupgrade: v3.20.0 → v3.21.0](https://github.com/asottile/pyupgrade/compare/v3.20.0...v3.21.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.3 → v0.14.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.3...v0.14.2) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5feedec..e4717b7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace exclude: ^tests/(toml-test|toml-spec-tests)/.* @@ -9,13 +9,13 @@ repos: - id: debug-statements - repo: https://github.com/asottile/pyupgrade - rev: v3.20.0 + rev: v3.21.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.12.3' + rev: 'v0.14.2' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] From 0a2a2ce52ea92536d3ea6b2462b719efe8772bd5 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Mon, 3 Nov 2025 11:21:00 +0800 Subject: [PATCH 2/2] fix: suppress lint warning in test_aot_unwrap function Signed-off-by: Frost Ming --- tests/test_items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_items.py b/tests/test_items.py index 4101a41..c465898 100644 --- a/tests/test_items.py +++ b/tests/test_items.py @@ -121,7 +121,7 @@ def test_aot_unwrap(): d = item([{"a": "A"}, {"b": "B"}]) unwrapped = d.unwrap() assert_is_ppo(unwrapped, list) - for du, _ in zip(unwrapped, d): + for du, _ in zip(unwrapped, d): # noqa: B905 assert_is_ppo(du, dict) for ku in du: vu = du[ku]