From d65e585c3e4cb39d541fcfa3e2c394729bfb3cbe Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 20:19:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/template_prefixes/loader_test.py | 1 + voila/handler.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/template_prefixes/loader_test.py b/tests/template_prefixes/loader_test.py index bae0a019b..5b2af4db5 100644 --- a/tests/template_prefixes/loader_test.py +++ b/tests/template_prefixes/loader_test.py @@ -1,4 +1,5 @@ """Tests loading template of jinja2 templates""" + import os from jinja2 import Environment, FileSystemLoader diff --git a/voila/handler.py b/voila/handler.py index 0cd0007eb..22a541524 100644 --- a/voila/handler.py +++ b/voila/handler.py @@ -90,9 +90,9 @@ async def get_generator(self, path=None): # Adding request uri to kernel env request_info = {} request_info[ENV_VARIABLE.SCRIPT_NAME] = self.request.path - request_info[ - ENV_VARIABLE.PATH_INFO - ] = "" # would be /foo/bar if voila.ipynb/foo/bar was supported + request_info[ENV_VARIABLE.PATH_INFO] = ( + "" # would be /foo/bar if voila.ipynb/foo/bar was supported + ) request_info[ENV_VARIABLE.QUERY_STRING] = str(self.request.query) request_info[ENV_VARIABLE.SERVER_SOFTWARE] = f"voila/{__version__}" request_info[ENV_VARIABLE.SERVER_PROTOCOL] = str(self.request.version)