Skip to content

Commit 3a2941a

Browse files
author
Tatjana Damnjanović
committed
linting
1 parent 55f21c7 commit 3a2941a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

solvebio/auth.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def authenticate(
5858
# Find credentials from environment variables
5959
if not host:
6060
host = (
61-
os.environ.get("QUARTZBIO_API_HOST", None)
62-
or os.environ.get("EDP_API_HOST", None)
63-
or os.environ.get("SOLVEBIO_API_HOST", None)
61+
os.environ.get("QUARTZBIO_API_HOST", None) or
62+
os.environ.get("EDP_API_HOST", None) or
63+
os.environ.get("SOLVEBIO_API_HOST", None)
6464
)
6565

6666
if not token:
@@ -71,9 +71,9 @@ def authenticate(
7171
)
7272

7373
access_token = (
74-
os.environ.get("QUARTZ_ACCESS_TOKEN", None)
75-
or os.environ.get("EDP_ACCESS_TOKEN", None)
76-
or os.environ.get("SOLVEBIO_ACCESS_TOKEN", None)
74+
os.environ.get("QUARTZ_ACCESS_TOKEN", None) or
75+
os.environ.get("EDP_ACCESS_TOKEN", None) or
76+
os.environ.get("SOLVEBIO_ACCESS_TOKEN", None)
7777
)
7878

7979
if access_token:
@@ -184,4 +184,4 @@ def validate_api_host_url(url):
184184
elif not parsed.netloc:
185185
raise SolveError("Invalid API host: %s." % url)
186186

187-
return parsed.geturl()
187+
return parsed.geturl()

0 commit comments

Comments
 (0)