From af1c4c70715733275b76cc52312abbb66c8895ec 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 17:59:04 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.277 → v0.0.278](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.277...v0.0.278) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 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] From 6e653a2aa89eeceb0e4d13cba7ca59384c749a05 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 17:59:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/tox/execute/local_sub_process/__init__.py | 2 +- tests/plugin/test_plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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