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,