Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#368)
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] committed Jul 10, 2023
1 parent ff1180d commit d139405
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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.275"
rev: "v0.0.277"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -19,12 +19,12 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.12.1"
rev: "0.13.0"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.6"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode"
rev: "v3.0.0"
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
except Exception as exc: # noqa: BLE001, PERF203
_LOGGER.warning(f"Failed guarded type import with {exc!r}")


Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _remove_sphinx_projects(sphinx_test_tempdir: path) -> None:
try:
if entry.is_dir() and Path(entry, "_build").exists():
shutil.rmtree(str(entry))
except PermissionError:
except PermissionError: # noqa: PERF203
pass


Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ commands =
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
skip_install = true
deps =
pre-commit>=3.3.2
pre-commit>=3.3.3
commands =
pre-commit run --all-files --show-diff-on-failure

Expand All @@ -51,7 +51,7 @@ extras =
[testenv:type]
description = run type check on code base
deps =
mypy==1.3
mypy==1.4.1
types-docutils>=0.20.0.1
set_env =
{tty:MYPY_FORCE_COLOR = 1}
Expand All @@ -65,7 +65,7 @@ skip_install = true
deps =
covdefaults>=2.3
coverage>=7.2.7
diff-cover>=7.5
diff-cover>=7.6
extras =
parallel_show_output = true
pass_env =
Expand Down

0 comments on commit d139405

Please sign in to comment.