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"] 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__