formatting and linting automation

Squashed commits:
[cd479ba] formatting and linting automation
[7fbfabb] formatting and linting automation
[c4f9505] fix after rebase
[f506ad4] rename job
[441d517] update doc (+7 squashed commits)
[2e1b416] fix invoke and github action
[6ae5bb4] doc for git blame
[44b5461] add GitHub action
[b07474f] add docs
[4cd9a6f] more linter fixes
[db71901] wip
[540dc88] wip
This commit is contained in:
Gilles Boccon-Gibod
2022-12-10 09:29:51 -08:00
parent 80fe2ea422
commit c2959dadb4
140 changed files with 2632 additions and 1346 deletions
+5 -4
View File
@@ -19,13 +19,13 @@ import asyncio
import sys
import os
import logging
import websockets
import json
import websockets
from bumble.device import Device
from bumble.transport import open_transport_or_link
from bumble.rfcomm import Server as RfommServer
from bumble.rfcomm import Server as RfcommServer
from bumble.sdp import (
DataElement,
ServiceAttribute,
@@ -97,7 +97,7 @@ class UiServer:
async def start(self):
# Start a Websocket server to receive events from a web page
async def serve(websocket, path):
async def serve(websocket, _path):
while True:
try:
message = await websocket.recv()
@@ -112,6 +112,7 @@ class UiServer:
except websockets.exceptions.ConnectionClosedOK:
pass
# pylint: disable=no-member
await websockets.serve(serve, 'localhost', 8989)
@@ -147,7 +148,7 @@ async def main():
device.classic_enabled = True
# Create and register a server
rfcomm_server = RfommServer(device)
rfcomm_server = RfcommServer(device)
# Listen for incoming DLC connections
channel_number = rfcomm_server.listen(on_dlc)