Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
3 changes: 1 addition & 2 deletions client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down