Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/tox/execute/local_sub_process/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/tox/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down