From eb3c795368da825ee74254b936c2dace81287276 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Fri, 27 Aug 2021 18:04:34 +0200 Subject: [PATCH] lint: fix line length --- matrix_webhook/conf.py | 3 ++- tests/start.py | 3 ++- tests/tests.py | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/matrix_webhook/conf.py b/matrix_webhook/conf.py index fd39e02..bb93335 100644 --- a/matrix_webhook/conf.py +++ b/matrix_webhook/conf.py @@ -20,7 +20,8 @@ parser.add_argument( "-u", "--matrix-url", default=os.environ.get("MATRIX_URL", "https://matrix.org"), - help="matrix homeserver url. Default: `https://matrix.org`. Environment variable: `MATRIX_URL`", + help="matrix homeserver url. Default: `https://matrix.org`. " + "Environment variable: `MATRIX_URL`", ) parser.add_argument( "-i", diff --git a/tests/start.py b/tests/start.py index c4160bd..89aa8ec 100755 --- a/tests/start.py +++ b/tests/start.py @@ -51,7 +51,8 @@ def wait_available(url: str, key: str, timeout: int = 10) -> bool: """Wait until a service answer correctly or timeout.""" def check_json(url: str, key: str) -> bool: - """Ensure a service at a given url answers with valid json containing a certain key.""" + """Ensure a service at a given url answers + with valid json containing a certain key.""" try: data = httpx.get(url).json() return key in data diff --git a/tests/tests.py b/tests/tests.py index a997aea..01993c3 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -29,8 +29,8 @@ class BotTest(unittest.IsolatedAsyncioTestCase): bot_req({"body": 3}, KEY, params={"formatter": "wrong_formatter"}), {"status": 400, "ret": "Unknown formatter"}, ) - # TODO: if the client from matrix_webhook has olm support, this won't be a 403 from synapse, - # but a LocalProtocolError from matrix_webhook + # TODO: if the client from matrix_webhook has olm support, + # this won't be a 403 from synapse, but a LocalProtocolError from matrix_webhook self.assertEqual( bot_req({"body": 3}, KEY, "wrong_room"), {"status": 403, "ret": "Unknown room"},