Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#453)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 13, 2024
1 parent aa4965c commit 22883fb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
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.28.2
rev: 0.28.3
hooks:
- id: check-github-workflows
args: [ "--verbose" ]
Expand All @@ -20,12 +20,12 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
rev: "2.0.3"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.14.2"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.2"
rev: "v0.4.4"
hooks:
- id: ruff-format
- id: ruff
Expand Down
33 changes: 24 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ keywords = [
"virtual",
]
license = "MIT"
maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
authors = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
maintainers = [
{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" },
]
authors = [
{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -37,7 +41,7 @@ dynamic = [
"version",
]
dependencies = [
"Sphinx>=7.3.5",
"sphinx>=7.3.5",
]
optional-dependencies.docs = [
"furo>=2024.1.29",
Expand All @@ -48,7 +52,7 @@ optional-dependencies.numpy = [
optional-dependencies.testing = [
"covdefaults>=2.3",
"coverage>=7.4.4",
"defusedxml>=0.7.1", # required by sphinx.testing
"defusedxml>=0.7.1", # required by sphinx.testing
"diff-cover>=9",
"pytest>=8.1.1",
"pytest-cov>=5",
Expand All @@ -70,7 +74,9 @@ line-length = 120
[tool.ruff]
line-length = 120
target-version = "py39"
lint.select = ["ALL"]
lint.select = [
"ALL",
]
lint.isort = { known-first-party = [
"sphinx_autodoc_typehints",
"tests",
Expand Down Expand Up @@ -111,7 +117,9 @@ write-changes = true
count = true

[tool.pytest.ini_options]
testpaths = ["tests"]
testpaths = [
"tests",
]

[tool.coverage]
html.show_contexts = true
Expand All @@ -128,12 +136,19 @@ paths.source = [
"*\\src",
]
report.fail_under = 85
report.omit = []
report.omit = [
]
run.parallel = true
run.plugins = ["covdefaults"]
run.plugins = [
"covdefaults",
]

[tool.mypy]
python_version = "3.10"
strict = true
exclude = "^(.*/roots/.*)|(tests/test_integration.py)$"
overrides = [{ module = ["sphobjinv.*"], ignore_missing_imports = true }]
overrides = [
{ module = [
"sphobjinv.*",
], ignore_missing_imports = true },
]
2 changes: 1 addition & 1 deletion src/sphinx_autodoc_typehints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def format_default(app: Sphinx, default: Any, is_annotated: bool) -> str | None:
return f"default: ``{formatted}``"


def process_docstring( # noqa: PLR0913, PLR0917, PLR0917
def process_docstring( # noqa: PLR0913, PLR0917
app: Sphinx,
what: str,
name: str,
Expand Down

0 comments on commit 22883fb

Please sign in to comment.