From 946b4eccba5bff5c77355ac155c2eadbf7151865 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 16:47:38 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.13.1 → v0.13.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.1...v0.13.2) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b228acfd8..94915b19a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: hooks: - id: validate-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.13.1" + rev: "v0.13.2" hooks: - id: ruff-check args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] From e6eb6840d9a8ce943455ab3a1db28154c024d8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Thu, 2 Oct 2025 09:20:40 -0700 Subject: [PATCH 2/2] Fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- src/tox/execute/local_sub_process/__init__.py | 2 +- src/tox/run.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tox/execute/local_sub_process/__init__.py b/src/tox/execute/local_sub_process/__init__.py index 8fa11c49c..e20e0210f 100644 --- a/src/tox/execute/local_sub_process/__init__.py +++ b/src/tox/execute/local_sub_process/__init__.py @@ -216,7 +216,7 @@ def __enter__(self) -> ExecuteStatus: except OSError as exception: # We log a nice error message to avout returning opaque error codes, # like exit code 2 (filenotfound). - logging.error("Exception running subprocess %s", str(exception)) # noqa: TRY400 + logging.error("Exception running subprocess %s", exception) # noqa: TRY400 return LocalSubprocessExecuteFailedStatus(self.options, self._out, self._err, exception.errno) status = LocalSubprocessExecuteStatus(self.options, self._out, self._err, process) diff --git a/src/tox/run.py b/src/tox/run.py index 5c048e8b7..c4c857ed1 100644 --- a/src/tox/run.py +++ b/src/tox/run.py @@ -20,7 +20,7 @@ def run(args: Sequence[str] | None = None) -> None: result = main(sys.argv[1:] if args is None else args) except Exception as exception: if isinstance(exception, HandledError): - logging.error("%s| %s", type(exception).__name__, str(exception)) # noqa: TRY400 + logging.error("%s| %s", type(exception).__name__, exception) # noqa: TRY400 result = -2 else: raise