From 2f7e93848c64b92a8cf29d3dd9d43cddbdf53867 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 11:16:00 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#3067) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/tox/execute/local_sub_process/__init__.py | 2 +- tests/plugin/test_plugin.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 44c84bc27..31b499485 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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] diff --git a/src/tox/execute/local_sub_process/__init__.py b/src/tox/execute/local_sub_process/__init__.py index 2f9c7c8df..efd9c9c78 100644 --- a/src/tox/execute/local_sub_process/__init__.py +++ b/src/tox/execute/local_sub_process/__init__.py @@ -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() diff --git a/tests/plugin/test_plugin.py b/tests/plugin/test_plugin.py index f7a9aa50c..6c03ff5ca 100644 --- a/tests/plugin/test_plugin.py +++ b/tests/plugin/test_plugin.py @@ -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