apply ruff fixes for UP031

This commit is contained in:
Min RK
2024-05-07 11:33:59 +02:00
parent 6051dc9fa7
commit 5636472ebf
37 changed files with 130 additions and 136 deletions

View File

@@ -7,5 +7,5 @@ import httpx
def get_client():
base_url = os.environ["JUPYTERHUB_API_URL"]
token = os.environ["JUPYTERHUB_API_TOKEN"]
headers = {"Authorization": "Bearer %s" % token}
headers = {"Authorization": f"Bearer {token}"}
return httpx.AsyncClient(base_url=base_url, headers=headers)