Skip to content

Commit c6c784a

Browse files
committed
Fix gatsik comments
1 parent 0fbbb1a commit c6c784a

4 files changed

Lines changed: 25 additions & 29 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ repos:
99
rev: 7.3.0
1010
hooks:
1111
- id: flake8
12-
args: ["--config=.flake8"]
13-
- repo: https://github.com/hhatto/autopep8
14-
rev: v2.3.2
15-
hooks:
16-
- id: autopep8
1712
- repo: https://github.com/PyCQA/isort
1813
rev: 6.0.1
1914
hooks:

server/gameconnection.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -637,26 +637,26 @@ def __str__(self):
637637

638638

639639
COMMAND_HANDLERS = {
640-
"AIOption": GameConnection.handle_ai_option,
641-
"Bottleneck": GameConnection.handle_bottleneck,
642-
"BottleneckCleared": GameConnection.handle_bottleneck_cleared,
643-
"Chat": GameConnection.handle_chat,
644-
"ClearSlot": GameConnection.handle_clear_slot,
645-
"Desync": GameConnection.handle_desync,
646-
"Disconnected": GameConnection.handle_disconnected,
647-
"EnforceRating": GameConnection.handle_enforce_rating,
648-
"GameEnded": GameConnection.handle_game_ended,
649-
"GameFull": GameConnection.handle_game_full,
650-
"GameMods": GameConnection.handle_game_mods,
651-
"GameOption": GameConnection.handle_game_option,
652-
"GameResult": GameConnection.handle_game_result,
653-
"GameState": GameConnection.handle_game_state,
654-
"IceMsg": GameConnection.handle_ice_message,
655-
"JsonStats": GameConnection.handle_json_stats,
656-
"LaunchStatus": GameConnection.handle_launch_status,
657-
"OperationComplete": GameConnection.handle_operation_complete,
658-
"PlayerOption": GameConnection.handle_player_option,
659-
"Rehost": GameConnection.handle_rehost,
660-
"TeamkillHappened": GameConnection.handle_teamkill_happened,
661-
"TeamkillReport": GameConnection.handle_teamkill_report,
640+
"AIOption": GameConnection.handle_ai_option,
641+
"Bottleneck": GameConnection.handle_bottleneck,
642+
"BottleneckCleared": GameConnection.handle_bottleneck_cleared,
643+
"Chat": GameConnection.handle_chat,
644+
"ClearSlot": GameConnection.handle_clear_slot,
645+
"Desync": GameConnection.handle_desync,
646+
"Disconnected": GameConnection.handle_disconnected,
647+
"EnforceRating": GameConnection.handle_enforce_rating,
648+
"GameEnded": GameConnection.handle_game_ended,
649+
"GameFull": GameConnection.handle_game_full,
650+
"GameMods": GameConnection.handle_game_mods,
651+
"GameOption": GameConnection.handle_game_option,
652+
"GameResult": GameConnection.handle_game_result,
653+
"GameState": GameConnection.handle_game_state,
654+
"IceMsg": GameConnection.handle_ice_message,
655+
"JsonStats": GameConnection.handle_json_stats,
656+
"LaunchStatus": GameConnection.handle_launch_status,
657+
"OperationComplete": GameConnection.handle_operation_complete,
658+
"PlayerOption": GameConnection.handle_player_option,
659+
"Rehost": GameConnection.handle_rehost,
660+
"TeamkillHappened": GameConnection.handle_teamkill_happened,
661+
"TeamkillReport": GameConnection.handle_teamkill_report,
662662
}

server/protocol/gpgnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class GpgNetServerProtocol(metaclass=ABCMeta):
66
"""
77
Defines an interface for the server side GPGNet protocol
88
"""
9-
109
async def send_ConnectToPeer(self, player_name: str, player_uid: int, offer: bool):
1110
"""
1211
Tells a client that has a listening LobbyComm instance to connect to the

setup.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ ignore=
2727
# W503: line break before binary operator
2828
W503,
2929
# W504: line break after binary operator
30-
W504
30+
W504,
31+
E231
3132
per-file-ignores=
3233
# E241: multiple spaces after ':'
3334
server/gameconnection.py: E241
3435
# F403: 'from x import *' used; unable to detect undefined names
3536
# F405: 'x' may be undefined, or defined from star imports
3637
server/stats/game_stats_service.py: F403, F405
3738
inline-quotes=double
39+
max-line-length = 100

0 commit comments

Comments
 (0)