From 9219d9ea266f74e60d372492dcc683fcc53aefb6 Mon Sep 17 00:00:00 2001 From: Andrei Matveyeu Date: Thu, 3 Oct 2024 12:51:40 +0200 Subject: [PATCH] black and pylint fixes --- python/src/etos_api/library/docker.py | 4 +++- python/src/etos_api/library/validator.py | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/src/etos_api/library/docker.py b/python/src/etos_api/library/docker.py index 7485b53..8e1ca04 100644 --- a/python/src/etos_api/library/docker.py +++ b/python/src/etos_api/library/docker.py @@ -92,7 +92,9 @@ async def authorize( else: query[key] = value.strip('"') - if not isinstance(url, str) or not (url.startswith("http://") or url.startswith("https://")): + if not isinstance(url, str) or not ( + url.startswith("http://") or url.startswith("https://") + ): raise ValueError(f"No realm URL found in www-authenticate header: {www_auth_header}") async with session.get(url, params=query) as response: diff --git a/python/src/etos_api/library/validator.py b/python/src/etos_api/library/validator.py index b585490..0a1744a 100644 --- a/python/src/etos_api/library/validator.py +++ b/python/src/etos_api/library/validator.py @@ -199,9 +199,7 @@ async def validate(self, test_suite_url): for test_runner in test_runners: for attempt in range(5): if attempt > 0: - span.add_event( - f"Test runner validation unsuccessful, retry #{attempt}" - ) + span.add_event(f"Test runner validation unsuccessful, retry #{attempt}") self.logger.warning( "Test runner %s validation unsuccessful, retry #%d", test_runner,