diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e28bc8..2a46d43 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,13 +22,13 @@ repos: - id: trailing-whitespace # ruff must before black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.2 + rev: v0.14.3 hooks: - id: ruff alias: ruff # NOTE: don't change this alias, it's used in `ver_sync.py`, keep consistent with `pyproject.toml` args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.1.0 + rev: 25.9.0 hooks: - id: black alias: black # NOTE: don't change this alias, it's used in `ver_sync.py`, keep consistent with `pyproject.toml` @@ -40,7 +40,7 @@ repos: additional_dependencies: - tomli - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.22.0 + rev: v9.23.0 hooks: - id: commitlint stages: [commit-msg] diff --git a/pyproject.toml b/pyproject.toml index 9bd2d00..8264f7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,8 +84,8 @@ dependencies = [ # NOTE: 👇 # 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", + "black==25.9.0", + "ruff==0.14.3", "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自己推断