Skip to content

Commit 33d7aac

Browse files
[pre-commit.ci] pre-commit autoupdate (#118)
updates: - [github.com/tox-dev/pyproject-fmt: 0.13.0 → 0.13.1](tox-dev/pyproject-fmt@0.13.0...0.13.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.284](astral-sh/ruff-pre-commit@v0.0.282...v0.0.284) 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>
1 parent 2ab27ae commit 33d7aac

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ repos:
1414
- id: tox-ini-fmt
1515
args: ["-p", "fix"]
1616
- repo: https://github.com/tox-dev/pyproject-fmt
17-
rev: "0.13.0"
17+
rev: "0.13.1"
1818
hooks:
1919
- id: pyproject-fmt
20-
additional_dependencies: ["tox>=4.6.1"]
20+
additional_dependencies: ["tox>=4.8"]
2121
- repo: https://github.com/pre-commit/mirrors-prettier
2222
rev: "v3.0.1"
2323
hooks:
2424
- id: prettier
2525
args: ["--print-width=120", "--prose-wrap=always"]
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.0.282"
27+
rev: "v0.0.284"
2828
hooks:
2929
- id: ruff
3030
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ dynamic = [
3838
"version",
3939
]
4040
dependencies = [
41-
"sphinx>=7.0.1",
41+
"sphinx>=7.1.2",
4242
]
4343
optional-dependencies.test = [
4444
"covdefaults>=2.3",
45-
"pytest>=7.3.2",
45+
"pytest>=7.4",
4646
"pytest-cov>=4.1",
4747
]
4848
urls.Documentation = "https://github.com/tox-dev/sphinx-argparse-cli#sphinx-argparse-cli"

src/sphinx_argparse_cli/_logic.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
_StoreTrueAction,
1313
_SubParsersAction,
1414
)
15-
from collections import defaultdict, namedtuple
15+
from collections import defaultdict
1616
from pathlib import Path
17-
from typing import TYPE_CHECKING, Any, ClassVar, Iterator, cast
17+
from typing import TYPE_CHECKING, Any, ClassVar, Iterator, NamedTuple, cast
1818

1919
from docutils.nodes import (
2020
Element,
@@ -42,7 +42,9 @@
4242
if TYPE_CHECKING:
4343
from docutils.parsers.rst.states import RSTState, RSTStateMachine
4444

45-
TextAsDefault = namedtuple("TextAsDefault", ["text"])
45+
46+
class TextAsDefault(NamedTuple):
47+
text: str
4648

4749

4850
def make_id(key: str) -> str:

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ commands =
4747
[testenv:type]
4848
description = run type check on code base
4949
deps =
50-
mypy==1.3
51-
types-docutils>=0.20.0.1
50+
mypy==1.5
51+
types-docutils>=0.20.0.2
5252
set_env =
5353
{tty:MYPY_FORCE_COLOR = 1}
5454
commands =

0 commit comments

Comments
 (0)