From aaaa0b8afb57d4f1ec82d8a9d4936e189669e1aa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 16:49:44 +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/python-jsonschema/check-jsonschema: 0.33.0 → 0.33.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.0...0.33.2) - [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.13...v0.12.2) - [github.com/rbubley/mirrors-prettier: v3.5.3 → v3.6.2](https://github.com/rbubley/mirrors-prettier/compare/v3.5.3...v3.6.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 218fcb6..1e41457 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.0 + rev: 0.33.2 hooks: - id: check-github-workflows args: ["--verbose"] @@ -24,13 +24,13 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.11.13" + rev: "v0.12.2" hooks: - id: ruff-format - id: ruff args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.5.3" + rev: "v3.6.2" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] From 13796de2db92e7cb781e378ac643c6cba5a88126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Thu, 10 Jul 2025 09:24:14 -0700 Subject: [PATCH 2/2] Fix CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- pyproject.toml | 1 - src/sphinx_argparse_cli/__init__.py | 2 +- tests/test_logic.py | 2 +- tests/test_sphinx_argparse_cli.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 95515fa..8a2a445 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,7 +73,6 @@ lint.select = [ "ALL", ] lint.ignore = [ - "ANN101", # no type annotation for self "ANN401", # allow Any as type annotation "COM812", # Conflict with formatter "CPY", # No copyright statements diff --git a/src/sphinx_argparse_cli/__init__.py b/src/sphinx_argparse_cli/__init__.py index 5ba82d1..100b38c 100644 --- a/src/sphinx_argparse_cli/__init__.py +++ b/src/sphinx_argparse_cli/__init__.py @@ -13,7 +13,7 @@ def setup(app: Sphinx) -> dict[str, Any]: app.add_css_file("custom.css") - from ._logic import SphinxArgparseCli + from ._logic import SphinxArgparseCli # noqa: PLC0415 app.add_directive(SphinxArgparseCli.name, SphinxArgparseCli) app.add_config_value("sphinx_argparse_cli_prefix_document", False, "env") # noqa: FBT003 diff --git a/tests/test_logic.py b/tests/test_logic.py index a205441..e248254 100644 --- a/tests/test_logic.py +++ b/tests/test_logic.py @@ -168,7 +168,7 @@ def test_suppressed_action(build_outcome: str) -> None: ], ) def test_help_loader(example: str, output: str) -> None: - from sphinx_argparse_cli._logic import load_help_text + from sphinx_argparse_cli._logic import load_help_text # noqa: PLC0415 result = load_help_text(example) assert result == output diff --git a/tests/test_sphinx_argparse_cli.py b/tests/test_sphinx_argparse_cli.py index a0bf070..d1137a6 100644 --- a/tests/test_sphinx_argparse_cli.py +++ b/tests/test_sphinx_argparse_cli.py @@ -2,6 +2,6 @@ def test_version() -> None: - import sphinx_argparse_cli + import sphinx_argparse_cli # noqa: PLC0415 assert sphinx_argparse_cli.__version__