Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#379)
Browse files Browse the repository at this point in the history
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.284](astral-sh/ruff-pre-commit@v0.0.282...v0.0.284)
- [github.com/tox-dev/pyproject-fmt: 0.13.0 → 0.13.1](tox-dev/pyproject-fmt@0.13.0...0.13.1)

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>
  • Loading branch information
pre-commit-ci[bot] authored Aug 14, 2023
1 parent 0406a37 commit 37dd0d8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 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/astral-sh/ruff-pre-commit
rev: "v0.0.282"
rev: "v0.0.284"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -19,10 +19,10 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.13.0"
rev: "0.13.1"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.6"]
additional_dependencies: ["tox>=4.8"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.1"
hooks:
Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.3",
"hatchling>=1.17.1",
"hatchling>=1.18",
]

[project]
Expand Down Expand Up @@ -38,23 +38,23 @@ dynamic = [
"version",
]
dependencies = [
"Sphinx>=7.0.1",
"Sphinx>=7.1.2",
]
optional-dependencies.docs = [
"furo>=2023.5.20",
"sphinx>=7.0.1",
"furo>=2023.7.26",
"sphinx>=7.1.2",
]
optional-dependencies.numpy = [
"nptyping>=2.5",
]
optional-dependencies.testing = [
"covdefaults>=2.3",
"coverage>=7.2.7",
"diff-cover>=7.5",
"pytest>=7.3.1",
"coverage>=7.3",
"diff-cover>=7.7",
"pytest>=7.4",
"pytest-cov>=4.1",
"sphobjinv>=2.3.1",
"typing-extensions>=4.6.3",
"typing-extensions>=4.7.1",
]
urls.Changelog = "https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/CHANGELOG.md"
urls.Homepage = "https://github.com/tox-dev/sphinx-autodoc-typehints"
Expand Down
2 changes: 1 addition & 1 deletion src/sphinx_autodoc_typehints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def _resolve_type_guarded_imports(autodoc_mock_imports: list[str], obj: Any) ->
with mock(autodoc_mock_imports):
exec(guarded_code, obj.__globals__) # noqa: S102
except Exception as exc: # noqa: BLE001
_LOGGER.warning(f"Failed guarded type import with {exc!r}")
_LOGGER.warning("Failed guarded type import with %r", exc)


def _get_type_hint(autodoc_mock_imports: list[str], name: str, obj: Any) -> dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion tests/roots/test-dummy/dummy_module_future_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def function_with_py310_annotations(
self, # noqa: ANN001, ARG001
x: bool | None, # noqa: ARG001
y: int | str | float, # noqa: ARG001
y: int | str | float, # noqa: ARG001,PYI041
z: str | None = None, # noqa: ARG001
) -> str:
"""
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extras =
description = run type check on code base
deps =
mypy==1.4.1
types-docutils>=0.20.0.1
types-docutils>=0.20.0.2
set_env =
{tty:MYPY_FORCE_COLOR = 1}
commands =
Expand All @@ -64,8 +64,8 @@ description = combine coverage files and generate diff (against DIFF_AGAINST def
skip_install = true
deps =
covdefaults>=2.3
coverage>=7.2.7
diff-cover>=7.6
coverage>=7.3
diff-cover>=7.7
extras =
parallel_show_output = true
pass_env =
Expand Down

0 comments on commit 37dd0d8

Please sign in to comment.