diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d1003d0bbe..17b39dfbd08 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ minimum_pre_commit_version: "4.4.0" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.20" + rev: "v0.15.21" hooks: - id: ruff-check args: ["--fix"] @@ -34,7 +34,7 @@ repos: hooks: - id: python-use-type-annotations - repo: https://github.com/pre-commit/mirrors-mypy - rev: v2.1.0 + rev: v2.3.0 hooks: - id: mypy files: ^(src/|testing/|scripts/) diff --git a/testing/freeze/tox_run.py b/testing/freeze/tox_run.py index 38c1e75cf10..8d588dda56c 100644 --- a/testing/freeze/tox_run.py +++ b/testing/freeze/tox_run.py @@ -8,9 +8,10 @@ if __name__ == "__main__": import os + import subprocess import sys executable = os.path.join(os.getcwd(), "dist", "runtests_script", "runtests_script") if sys.platform.startswith("win"): executable += ".exe" - sys.exit(os.system(f"{executable} tests")) + sys.exit(subprocess.call([executable, "tests"])) diff --git a/testing/test_monkeypatch.py b/testing/test_monkeypatch.py index f00654d913d..04b16a1e8c2 100644 --- a/testing/test_monkeypatch.py +++ b/testing/test_monkeypatch.py @@ -436,7 +436,7 @@ def test_context() -> None: with monkeypatch.context() as m: m.setattr(functools, "partial", 3) assert not inspect.isclass(functools.partial) - assert inspect.isclass(functools.partial) + assert inspect.isclass(functools.partial) # type: ignore[unreachable] def test_context_classmethod() -> None: