Skip to content

Commit 984dc78

Browse files
[pre-commit.ci] pre-commit autoupdate (#3615)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <[email protected]>
1 parent 660adb5 commit 984dc78

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: validate-pyproject
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.13.1"
26+
rev: "v0.13.2"
2727
hooks:
2828
- id: ruff-check
2929
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]

src/tox/execute/local_sub_process/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def __enter__(self) -> ExecuteStatus:
216216
except OSError as exception:
217217
# We log a nice error message to avout returning opaque error codes,
218218
# like exit code 2 (filenotfound).
219-
logging.error("Exception running subprocess %s", str(exception)) # noqa: TRY400
219+
logging.error("Exception running subprocess %s", exception) # noqa: TRY400
220220
return LocalSubprocessExecuteFailedStatus(self.options, self._out, self._err, exception.errno)
221221

222222
status = LocalSubprocessExecuteStatus(self.options, self._out, self._err, process)

src/tox/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def run(args: Sequence[str] | None = None) -> None:
2020
result = main(sys.argv[1:] if args is None else args)
2121
except Exception as exception:
2222
if isinstance(exception, HandledError):
23-
logging.error("%s| %s", type(exception).__name__, str(exception)) # noqa: TRY400
23+
logging.error("%s| %s", type(exception).__name__, exception) # noqa: TRY400
2424
result = -2
2525
else:
2626
raise

0 commit comments

Comments
 (0)