Enable pycodestyle
This commit allows our python code to be run through the CI format-code
scripts. The exact content is copied from sdbusplus.
Tested, ran pycodeformat on each script, observed it passing.
Ran each script individually. check_base_registry seems broken previous
to this commit, although it provides the same output.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I7eacfa355b794f49308b900c2988809d2aa122c3
diff --git a/scripts/websocket_test.py b/scripts/websocket_test.py
index f99ddac..c76a014 100755
--- a/scripts/websocket_test.py
+++ b/scripts/websocket_test.py
@@ -37,7 +37,9 @@
authbytes = "{}:{}".format(args.username, args.password).encode('ascii')
auth = "Basic {}".format(base64.b64encode(authbytes).decode('ascii'))
headers = {"Authorization": auth}
- async with websockets.connect(uri, ssl=ssl_context, extra_headers=headers) as websocket:
+ async with \
+ websockets.connect(uri, ssl=ssl_context, extra_headers=headers) \
+ as websocket:
request = json.dumps({
"paths": ["/xyz/openbmc_project/sensors"],
"interfaces": ["xyz.openbmc_project.Sensor.Value"]