Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#377)
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 Aug 7, 2023
1 parent ae448e2 commit 9ae4f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 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.280"
rev: "v0.0.282"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -24,7 +24,7 @@ repos:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.6"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0"
rev: "v3.0.1"
hooks:
- id: prettier
args: ["--print-width=120", "--prose-wrap=always"]
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 @@ -428,7 +428,7 @@ def _resolve_type_guarded_imports(autodoc_mock_imports: list[str], obj: Any) ->
try:
with mock(autodoc_mock_imports):
exec(guarded_code, obj.__globals__) # noqa: S102
except Exception as exc: # noqa: BLE001, PERF203
except Exception as exc: # noqa: BLE001
_LOGGER.warning(f"Failed guarded type import with {exc!r}")


Expand Down

0 comments on commit 9ae4f84

Please sign in to comment.