Skip to content

Commit d139405

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

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: "v0.0.275"
8+
rev: "v0.0.277"
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]
@@ -19,12 +19,12 @@ repos:
1919
- id: tox-ini-fmt
2020
args: ["-p", "fix"]
2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: "0.12.1"
22+
rev: "0.13.0"
2323
hooks:
2424
- id: pyproject-fmt
2525
additional_dependencies: ["tox>=4.6"]
2626
- repo: https://github.com/pre-commit/mirrors-prettier
27-
rev: "v3.0.0-alpha.9-for-vscode"
27+
rev: "v3.0.0"
2828
hooks:
2929
- id: prettier
3030
args: ["--print-width=120", "--prose-wrap=always"]

src/sphinx_autodoc_typehints/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def _resolve_type_guarded_imports(autodoc_mock_imports: list[str], obj: Any) ->
428428
try:
429429
with mock(autodoc_mock_imports):
430430
exec(guarded_code, obj.__globals__) # noqa: S102
431-
except Exception as exc: # noqa: BLE001
431+
except Exception as exc: # noqa: BLE001, PERF203
432432
_LOGGER.warning(f"Failed guarded type import with {exc!r}")
433433

434434

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _remove_sphinx_projects(sphinx_test_tempdir: path) -> None:
4141
try:
4242
if entry.is_dir() and Path(entry, "_build").exists():
4343
shutil.rmtree(str(entry))
44-
except PermissionError:
44+
except PermissionError: # noqa: PERF203
4545
pass
4646

4747

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ commands =
3939
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
4040
skip_install = true
4141
deps =
42-
pre-commit>=3.3.2
42+
pre-commit>=3.3.3
4343
commands =
4444
pre-commit run --all-files --show-diff-on-failure
4545

@@ -51,7 +51,7 @@ extras =
5151
[testenv:type]
5252
description = run type check on code base
5353
deps =
54-
mypy==1.3
54+
mypy==1.4.1
5555
types-docutils>=0.20.0.1
5656
set_env =
5757
{tty:MYPY_FORCE_COLOR = 1}
@@ -65,7 +65,7 @@ skip_install = true
6565
deps =
6666
covdefaults>=2.3
6767
coverage>=7.2.7
68-
diff-cover>=7.5
68+
diff-cover>=7.6
6969
extras =
7070
parallel_show_output = true
7171
pass_env =

0 commit comments

Comments
 (0)