Skip to content

Commit

Permalink
black and pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andmat900 committed Oct 3, 2024
1 parent a386602 commit 9219d9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion python/src/etos_api/library/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions python/src/etos_api/library/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9219d9e

Please sign in to comment.