Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#278)
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 May 3, 2024
1 parent 9781f05 commit 120a441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
additional_dependencies: [ "tomli>=2.0.1" ]
args: [ "--in-place", "--config", "./pyproject.toml" ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.1"
rev: "v0.4.2"
hooks:
- id: ruff-format
- id: ruff
Expand Down
3 changes: 2 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def test_android_active( # noqa: PLR0913

def _fake_import(name: str, *args: Any, **kwargs: Any) -> ModuleType: # noqa: ANN401
if name == "ctypes":
raise ModuleNotFoundError("No module named %s" % name)
msg = f"No module named {name}"
raise ModuleNotFoundError(msg)
return builtin_import(name, *args, **kwargs)


Expand Down

0 comments on commit 120a441

Please sign in to comment.