Skip to content

Commit 46969ae

Browse files
[pre-commit.ci] pre-commit autoupdate (#233)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.33.0 → 0.33.2](python-jsonschema/check-jsonschema@0.33.0...0.33.2) - [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.13...v0.12.2) - [github.com/rbubley/mirrors-prettier: v3.5.3 → v3.6.2](rbubley/mirrors-prettier@v3.5.3...v3.6.2) * Fix CI Signed-off-by: Bernát Gábor <[email protected]> --------- Signed-off-by: Bernát Gábor <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <[email protected]>
1 parent e7b477e commit 46969ae

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.33.0
8+
rev: 0.33.2
99
hooks:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
@@ -24,13 +24,13 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.11.13"
27+
rev: "v0.12.2"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff
3131
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
3232
- repo: https://github.com/rbubley/mirrors-prettier
33-
rev: "v3.5.3"
33+
rev: "v3.6.2"
3434
hooks:
3535
- id: prettier
3636
args: ["--print-width=120", "--prose-wrap=always"]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ lint.select = [
7373
"ALL",
7474
]
7575
lint.ignore = [
76-
"ANN101", # no type annotation for self
7776
"ANN401", # allow Any as type annotation
7877
"COM812", # Conflict with formatter
7978
"CPY", # No copyright statements

src/sphinx_argparse_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def setup(app: Sphinx) -> dict[str, Any]:
1414
app.add_css_file("custom.css")
1515

16-
from ._logic import SphinxArgparseCli
16+
from ._logic import SphinxArgparseCli # noqa: PLC0415
1717

1818
app.add_directive(SphinxArgparseCli.name, SphinxArgparseCli)
1919
app.add_config_value("sphinx_argparse_cli_prefix_document", False, "env") # noqa: FBT003

tests/test_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_suppressed_action(build_outcome: str) -> None:
168168
],
169169
)
170170
def test_help_loader(example: str, output: str) -> None:
171-
from sphinx_argparse_cli._logic import load_help_text
171+
from sphinx_argparse_cli._logic import load_help_text # noqa: PLC0415
172172

173173
result = load_help_text(example)
174174
assert result == output

tests/test_sphinx_argparse_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33

44
def test_version() -> None:
5-
import sphinx_argparse_cli
5+
import sphinx_argparse_cli # noqa: PLC0415
66

77
assert sphinx_argparse_cli.__version__

0 commit comments

Comments
 (0)