Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #453

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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