Skip to content

Commit d1b5354

Browse files
committed
Lint
1 parent 448b1e0 commit d1b5354

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,7 @@ ignore = [
157157

158158
[tool.ruff.lint.per-file-ignores]
159159
"__init__.py" = ["F401"] # Ignore unused imports on init files
160+
"__main__.py" = ["S104"] # Ignore 0.0.0.0 bindings for startup script
161+
"dev_server.py" = ["S104"] # Ignore 0.0.0.0 bindings for startup script
160162
"tests/**/*.py" = ["S101"] # Allow assert usage on tests
161163
"src/migrations/env.py" = ["E501"] # Allow long lines

src/socketio_app/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Union
22

33
import socketio
4-
from starlette.routing import Mount, Router, Route
4+
from starlette.routing import Mount, Route, Router
55

66
from common import AppConfig, application_init
77
from socketio_app.namespaces.chat import ChatNamespace
@@ -23,7 +23,7 @@ def create_app(
2323
routes = [
2424
Route("/docs/asyncapi.json", docs.asyncapi_json, methods=["GET"]),
2525
Route("/docs", docs.get_asyncapi_html, methods=["GET"]),
26-
Mount("", app=socketio.ASGIApp(sio), name="socketio")
26+
Mount("", app=socketio.ASGIApp(sio), name="socketio"),
2727
]
2828

2929
# No need for whole starlette, we're rendering a simple couple of endpoints

0 commit comments

Comments
 (0)