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"] 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__ = [