Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3067)
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] authored Jul 17, 2023
1 parent 869040b commit 2f7e938
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/tox-dev/tox-ini-fmt
Expand All @@ -29,7 +29,7 @@ repos:
- id: blacken-docs
additional_dependencies: [black==23.3]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.277"
rev: "v0.0.278"
hooks:
- id: ruff
args: [--fix, --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 @@ -115,7 +115,7 @@ def write_stdin(self, content: str) -> None:
result = ov.getresult(10) # wait up to 10ms to perform the operation
if result != len(bytes_content):
msg = f"failed to write to {stdin!r}"
raise RuntimeError(msg) # noqa: TRY301
raise RuntimeError(msg)
else:
stdin.write(bytes_content)
stdin.flush()
Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _cannot_extend_config(config_set: ConfigSet) -> None:
):
try:
_conf(config_set) # type: ignore[no-untyped-call] # call to not typed function
raise NotImplementedError # noqa: TRY301
raise NotImplementedError
except RuntimeError as exc: # noqa: PERF203
assert str(exc) == "config set has been marked final and cannot be extended" # noqa: PT017

Expand Down

0 comments on commit 2f7e938

Please sign in to comment.