Skip to content

Commit 22883fb

Browse files
[pre-commit.ci] pre-commit autoupdate (#453)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent aa4965c commit 22883fb

File tree

3 files changed

+28
-13
lines changed

3 files changed

+28
-13
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.28.2
8+
rev: 0.28.3
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
@@ -20,12 +20,12 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "1.8.0"
23+
rev: "2.0.3"
2424
hooks:
2525
- id: pyproject-fmt
2626
additional_dependencies: ["tox>=4.14.2"]
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: "v0.4.2"
28+
rev: "v0.4.4"
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff

pyproject.toml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ keywords = [
1717
"virtual",
1818
]
1919
license = "MIT"
20-
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }]
21-
authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
20+
maintainers = [
21+
{ name = "Bernát Gábor", email = "[email protected]" },
22+
]
23+
authors = [
24+
{ name = "Bernát Gábor", email = "[email protected]" },
25+
]
2226
requires-python = ">=3.9"
2327
classifiers = [
2428
"Development Status :: 5 - Production/Stable",
@@ -37,7 +41,7 @@ dynamic = [
3741
"version",
3842
]
3943
dependencies = [
40-
"Sphinx>=7.3.5",
44+
"sphinx>=7.3.5",
4145
]
4246
optional-dependencies.docs = [
4347
"furo>=2024.1.29",
@@ -48,7 +52,7 @@ optional-dependencies.numpy = [
4852
optional-dependencies.testing = [
4953
"covdefaults>=2.3",
5054
"coverage>=7.4.4",
51-
"defusedxml>=0.7.1", # required by sphinx.testing
55+
"defusedxml>=0.7.1", # required by sphinx.testing
5256
"diff-cover>=9",
5357
"pytest>=8.1.1",
5458
"pytest-cov>=5",
@@ -70,7 +74,9 @@ line-length = 120
7074
[tool.ruff]
7175
line-length = 120
7276
target-version = "py39"
73-
lint.select = ["ALL"]
77+
lint.select = [
78+
"ALL",
79+
]
7480
lint.isort = { known-first-party = [
7581
"sphinx_autodoc_typehints",
7682
"tests",
@@ -111,7 +117,9 @@ write-changes = true
111117
count = true
112118

113119
[tool.pytest.ini_options]
114-
testpaths = ["tests"]
120+
testpaths = [
121+
"tests",
122+
]
115123

116124
[tool.coverage]
117125
html.show_contexts = true
@@ -128,12 +136,19 @@ paths.source = [
128136
"*\\src",
129137
]
130138
report.fail_under = 85
131-
report.omit = []
139+
report.omit = [
140+
]
132141
run.parallel = true
133-
run.plugins = ["covdefaults"]
142+
run.plugins = [
143+
"covdefaults",
144+
]
134145

135146
[tool.mypy]
136147
python_version = "3.10"
137148
strict = true
138149
exclude = "^(.*/roots/.*)|(tests/test_integration.py)$"
139-
overrides = [{ module = ["sphobjinv.*"], ignore_missing_imports = true }]
150+
overrides = [
151+
{ module = [
152+
"sphobjinv.*",
153+
], ignore_missing_imports = true },
154+
]

src/sphinx_autodoc_typehints/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def format_default(app: Sphinx, default: Any, is_annotated: bool) -> str | None:
615615
return f"default: ``{formatted}``"
616616

617617

618-
def process_docstring( # noqa: PLR0913, PLR0917, PLR0917
618+
def process_docstring( # noqa: PLR0913, PLR0917
619619
app: Sphinx,
620620
what: str,
621621
name: str,

0 commit comments

Comments
 (0)