From 465373ca7e5817f7889c5f769f2632aca3e3c8f4 Mon Sep 17 00:00:00 2001 From: Alok Saldanha Date: Tue, 8 Sep 2020 21:10:58 -0400 Subject: [PATCH] #30 black formatting --- cellxgene_gateway/cache_entry.py | 12 +++++++++--- cellxgene_gateway/env.py | 10 ++++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/cellxgene_gateway/cache_entry.py b/cellxgene_gateway/cache_entry.py index 5520a68..a24fa70 100644 --- a/cellxgene_gateway/cache_entry.py +++ b/cellxgene_gateway/cache_entry.py @@ -169,11 +169,15 @@ class CacheEntry: cellxgene_response = get(full_path, headers=headers) elif request.method == "PUT": cellxgene_response = put( - full_path, headers=headers, data=request.data, + full_path, + headers=headers, + data=request.data, ) elif request.method == "POST": cellxgene_response = post( - full_path, headers=headers, data=request.data, + full_path, + headers=headers, + data=request.data, ) else: raise CellxgeneException( @@ -193,7 +197,9 @@ class CacheEntry: resp_headers[h] = cellxgene_response.headers[h] gateway_response = make_response( - gateway_content, cellxgene_response.status_code, resp_headers, + gateway_content, + cellxgene_response.status_code, + resp_headers, ) return gateway_response diff --git a/cellxgene_gateway/env.py b/cellxgene_gateway/env.py index bd14ebd..2fcae35 100644 --- a/cellxgene_gateway/env.py +++ b/cellxgene_gateway/env.py @@ -31,10 +31,16 @@ enable_upload = os.environ.get("GATEWAY_ENABLE_UPLOAD", "").lower() in [ ] enable_annotations = os.environ.get( "GATEWAY_ENABLE_ANNOTATIONS", "" -).lower() in ["true", "1",] +).lower() in [ + "true", + "1", +] enable_backed_mode = os.environ.get( "GATEWAY_ENABLE_BACKED_MODE", "" -).lower() in ["true", "1",] +).lower() in [ + "true", + "1", +] env_vars = { "CELLXGENE_LOCATION": cellxgene_location,