Configures ruff as the one stop linter and resolves warnings it raised

This commit is contained in:
Trenton H
2023-03-28 09:39:30 -07:00
parent 5869467db3
commit ce41ac9158
110 changed files with 507 additions and 491 deletions

View File

@@ -12,13 +12,13 @@ class StatusConsumer(WebsocketConsumer):
def connect(self):
if not self._authenticated():
raise DenyConnection()
raise DenyConnection
else:
async_to_sync(self.channel_layer.group_add)(
"status_updates",
self.channel_name,
)
raise AcceptConnection()
raise AcceptConnection
def disconnect(self, close_code):
async_to_sync(self.channel_layer.group_discard)(