Skip to content

Commit 4ef60bf

Browse files
author
github-actions
committed
Auto-format Python code with Black
1 parent 754394f commit 4ef60bf

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

nexios/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def get_application(
175175
)
176176
set_config(config)
177177
app = NexiosApp(
178-
179178
server_error_handler=server_error_handler,
180179
config=config,
181180
title=title,
@@ -184,8 +183,6 @@ def get_application(
184183
lifespan=lifespan,
185184
)
186185

187-
188-
189186
return app
190187

191188

nexios/file_router/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_source(self, environment, template):
3737
def configure_templates(
3838
template_dir: Optional[str] = None,
3939
env: Optional[Environment] = None,
40-
**env_options: Dict[str, Any]
40+
**env_options: Dict[str, Any],
4141
) -> None:
4242
"""
4343
Configure global template settings.
@@ -58,7 +58,7 @@ def configure_templates(
5858
loader=Loader(template_dir),
5959
autoescape=select_autoescape(),
6060
auto_reload=True,
61-
**env_options # type:ignore
61+
**env_options, # type:ignore
6262
)
6363
else:
6464
DEFAULT_TEMPLATE_ENV = None

nexios/templating/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def render(
9696
context: Optional[Dict[str, Any]] = None,
9797
status_code: int = 200,
9898
headers: Optional[Dict[str, str]] = None,
99-
**kwargs
99+
**kwargs,
100100
) -> HTMLResponse:
101101
"""Render template to response."""
102102
if not engine:

test/test_session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from typing import Tuple, Dict, Any
1414
from nexios.session.middleware import SessionMiddleware
1515

16+
1617
# Fixtures for different session configurations
1718
@pytest.fixture
1819
async def file_session_client(tmp_path) -> Tuple[Client, NexiosApp]:

0 commit comments

Comments
 (0)