From 2c794963298128809c407d5005f4acab820ef233 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 19:42:08 +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/astral-sh/ruff-pre-commit: v0.11.2 → v0.12.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.2...v0.12.11) --- .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 4e28bc8..6dcf4c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ default_install_hook_types: [pre-commit, commit-msg] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: no-commit-to-branch - id: check-added-large-files @@ -22,7 +22,7 @@ repos: - id: trailing-whitespace # ruff must before black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.2 + rev: v0.12.11 hooks: - id: ruff alias: ruff # NOTE: don't change this alias, it's used in `ver_sync.py`, keep consistent with `pyproject.toml` From 0a31db866d355fce67dcdb267685feb4ecc0bab3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 19:42:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 2 +- tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9bd2d00..7d48cd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,7 +85,7 @@ dependencies = [ # The versions of `black`, `ruff`, `codespell`, must be consistent with the `.pre-commit-config.yaml`. # Don't edit them manually, use `pre-commit run ver_sync` instead. "black==25.1.0", - "ruff==0.11.2", + "ruff==0.12.11", "codespell==2.4.1", # Don't write comments on these lines, because they will be removed by `pre-commit run ver_sync`. # NOTE: 👆 diff --git a/tests/conftest.py b/tests/conftest.py index 817bdad..8183552 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -# ruff: noqa: ANN201, ANN001 +# ruff: noqa: ANN201 # pyright: reportMissingParameterType=false # 返回值标注太麻烦,让pyright自己推断