Skip to content

Commit d53b719

Browse files
[pre-commit.ci] pre-commit autoupdate (#456)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 104b9a3 commit d53b719

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Diff for: .pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.28.3
8+
rev: 0.28.4
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
1212
- repo: https://github.com/codespell-project/codespell
13-
rev: v2.2.6
13+
rev: v2.3.0
1414
hooks:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.0.1"]
@@ -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: "2.1.1"
23+
rev: "2.1.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.4"
28+
rev: "v0.4.7"
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff

Diff for: pyproject.toml

+10-10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ format.docstring-code-format = true
8080
lint.select = [
8181
"ALL",
8282
]
83+
lint.ignore = [
84+
"ANN101", # no type annotation for self
85+
"ANN401", # allow Any as type annotation
86+
"COM812", # Conflict with formatter
87+
"CPY", # No copyright statements
88+
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
89+
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
90+
"ISC001", # Conflict with formatter
91+
"S104", # Possible binding to all interface
92+
]
8393
lint.per-file-ignores."tests/**/*.py" = [
8494
"D", # don't care about documentation in tests
8595
"FBT", # don"t care about booleans as positional arguments in tests
@@ -97,16 +107,6 @@ lint.isort = { known-first-party = [
97107
], required-imports = [
98108
"from __future__ import annotations",
99109
] }
100-
lint.ignore = [
101-
"ANN101", # no type annotation for self
102-
"ANN401", # allow Any as type annotation
103-
"COM812", # Conflict with formatter
104-
"CPY", # No copyright statements
105-
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
106-
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
107-
"ISC001", # Conflict with formatter
108-
"S104", # Possible binding to all interface
109-
]
110110
lint.preview = true
111111

112112
[tool.codespell]

Diff for: src/sphinx_autodoc_typehints/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def _get_type_hint(autodoc_mock_imports: list[str], name: str, obj: Any) -> dict
491491
return result
492492

493493

494-
def backfill_type_hints(obj: Any, name: str) -> dict[str, Any]: # noqa: C901, PLR0911, PLR0912
494+
def backfill_type_hints(obj: Any, name: str) -> dict[str, Any]: # noqa: C901, PLR0911
495495
"""
496496
Backfill type hints.
497497

0 commit comments

Comments
 (0)