Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"]
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sphinx_argparse_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sphinx_argparse_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@


def test_version() -> None:
import sphinx_argparse_cli
import sphinx_argparse_cli # noqa: PLC0415

assert sphinx_argparse_cli.__version__