From 03875e8cf3f4bbb045c4defde9873e4848501d29 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:52:46 +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/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.4...0.30.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.0 → v0.8.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.0...v0.8.2) - [github.com/rbubley/mirrors-prettier: v3.3.3 → v3.4.2](https://github.com/rbubley/mirrors-prettier/compare/v3.3.3...v3.4.2) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7644c00..2304994 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/python-jsonschema/check-jsonschema - rev: 0.29.4 + rev: 0.30.0 hooks: - id: check-github-workflows args: ["--verbose"] @@ -24,13 +24,13 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.8.0" + rev: "v0.8.2" hooks: - id: ruff-format - id: ruff args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.3.3" + rev: "v3.4.2" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] From 5c5ace42189811566a2b1b78ff4b17df0be0d498 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:52:54 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/devpi_process/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devpi_process/__init__.py b/src/devpi_process/__init__.py index 7f6ef3e..050bedc 100644 --- a/src/devpi_process/__init__.py +++ b/src/devpi_process/__init__.py @@ -149,7 +149,7 @@ def _keep_draining() -> None: def _drain_stdout(self) -> Iterator[str]: process = cast("Popen[str]", self._process) - stdout = cast(IO[str], process.stdout) + stdout = cast("IO[str]", process.stdout) while True: if process.poll() is not None: # pragma: no cover print(f"devpi server with pid {process.pid} at {self._server_dir} died") # noqa: T201 @@ -211,7 +211,7 @@ def __repr__(self) -> str: def _find_free_port() -> int: with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as socket_handler: socket_handler.bind(("", 0)) - return cast(int, socket_handler.getsockname()[1]) + return cast("int", socket_handler.getsockname()[1]) __all__ = [