Skip to content

Commit 9bec0f4

Browse files
[pre-commit.ci] pre-commit autoupdate (#152)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](python-jsonschema/check-jsonschema@0.29.4...0.30.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.0 → v0.8.2](astral-sh/ruff-pre-commit@v0.8.0...v0.8.2) - [github.com/rbubley/mirrors-prettier: v3.3.3 → v3.4.2](rbubley/mirrors-prettier@v3.3.3...v3.4.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0b6a110 commit 9bec0f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 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/python-jsonschema/check-jsonschema
8-
rev: 0.29.4
8+
rev: 0.30.0
99
hooks:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
@@ -24,13 +24,13 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.8.0"
27+
rev: "v0.8.2"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff
3131
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
3232
- repo: https://github.com/rbubley/mirrors-prettier
33-
rev: "v3.3.3"
33+
rev: "v3.4.2"
3434
hooks:
3535
- id: prettier
3636
args: ["--print-width=120", "--prose-wrap=always"]

src/devpi_process/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _keep_draining() -> None:
149149

150150
def _drain_stdout(self) -> Iterator[str]:
151151
process = cast("Popen[str]", self._process)
152-
stdout = cast(IO[str], process.stdout)
152+
stdout = cast("IO[str]", process.stdout)
153153
while True:
154154
if process.poll() is not None: # pragma: no cover
155155
print(f"devpi server with pid {process.pid} at {self._server_dir} died") # noqa: T201
@@ -211,7 +211,7 @@ def __repr__(self) -> str:
211211
def _find_free_port() -> int:
212212
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as socket_handler:
213213
socket_handler.bind(("", 0))
214-
return cast(int, socket_handler.getsockname()[1])
214+
return cast("int", socket_handler.getsockname()[1])
215215

216216

217217
__all__ = [

0 commit comments

Comments
 (0)