much stricter ruff linting

Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-05-11 07:15:37 +02:00
parent 14a5647905
commit 310dbf1574
132 changed files with 288 additions and 359 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def setup_middleware(app: FastAPI, cmd_opts):
client = req.scope.get('client', ('0:0.0.0', 0))[0]
token = req.cookies.get("access-token") or req.cookies.get("access-token-unsecure")
validate_request(client, endpoint)
if (cmd_opts.api_log):
if cmd_opts.api_log:
if not validate_log(client, endpoint):
return res
log.info('API user={user} code={code} {prot}/{ver} {method} {endpoint} {client} {duration}'.format( # pylint: disable=consider-using-f-string, logging-format-interpolation