Skip to content

Commit 2f7e938

Browse files
[pre-commit.ci] pre-commit autoupdate (#3067)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 869040b commit 2f7e938

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/psf/black
8-
rev: 23.3.0
8+
rev: 23.7.0
99
hooks:
1010
- id: black
1111
- repo: https://github.com/tox-dev/tox-ini-fmt
@@ -29,7 +29,7 @@ repos:
2929
- id: blacken-docs
3030
additional_dependencies: [black==23.3]
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.0.277"
32+
rev: "v0.0.278"
3333
hooks:
3434
- id: ruff
3535
args: [--fix, --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
@@ -115,7 +115,7 @@ def write_stdin(self, content: str) -> None:
115115
result = ov.getresult(10) # wait up to 10ms to perform the operation
116116
if result != len(bytes_content):
117117
msg = f"failed to write to {stdin!r}"
118-
raise RuntimeError(msg) # noqa: TRY301
118+
raise RuntimeError(msg)
119119
else:
120120
stdin.write(bytes_content)
121121
stdin.flush()

tests/plugin/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def _cannot_extend_config(config_set: ConfigSet) -> None:
240240
):
241241
try:
242242
_conf(config_set) # type: ignore[no-untyped-call] # call to not typed function
243-
raise NotImplementedError # noqa: TRY301
243+
raise NotImplementedError
244244
except RuntimeError as exc: # noqa: PERF203
245245
assert str(exc) == "config set has been marked final and cannot be extended" # noqa: PT017
246246

0 commit comments

Comments
 (0)