From 2b0cacaf653fcbaddfe214be067156af94724065 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 20:42:08 +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/pre-commit/pre-commit-hooks: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.19.1) - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.14.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.14.11) --- .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 d049ca1..5700388 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,20 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: check-yaml - id: check-added-large-files - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.19.1 hooks: - id: mypy language_version: python3.12 args: [--strict, --ignore-missing-imports] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.14.11 hooks: - id: ruff stages: [pre-commit, pre-push] From 2359c1753f4ec88a5cc70cfbe3f133baa88be556 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 20:42:22 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- client/client.py | 3 +-- server/server.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/client.py b/client/client.py index 1c81a45..6009b9d 100644 --- a/client/client.py +++ b/client/client.py @@ -69,8 +69,7 @@ def parse_hostname(host_name: str) -> str: except socket.gaierror as error: logger.error(error) raise ValueError( - "Invalid host name, must be an IP address, domain name," - ' or "localhost"' + 'Invalid host name, must be an IP address, domain name, or "localhost"' ) from error return host_name diff --git a/server/server.py b/server/server.py index d1f34d0..64fe4c3 100644 --- a/server/server.py +++ b/server/server.py @@ -98,8 +98,7 @@ def process_create_request( message.decode(), ) print( - f"{sender_name} sends the message " - f'"{message.decode()}" to {receiver_name}' + f'{sender_name} sends the message "{message.decode()}" to {receiver_name}' ) def run_server(self, welcoming_socket: socket.socket) -> None: