refactor: ruff autofixes

This commit is contained in:
Mark Paronyan committed 2026-09-27 15:55:10 +03:00
1 parent 2ac637c662
commit a0450b6bce
455 files changed
+12322 -14762

No files matched your search

+6 -6
View File
@@ -24,19 +24,19 @@ from gns3server.api.server import app
if __name__ == "__main__":
with open("../docs/openapi.json", "w") as fd:
fd.write(json.dumps(app.openapi()))
swagger_html = get_swagger_ui_html(openapi_url="openapi.json",
title=app.title + " - Swagger UI",
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url)
swagger_html = get_swagger_ui_html(
openapi_url="openapi.json",
title=app.title + " - Swagger UI",
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
)
with open("../docs/index.html", "w") as fd:
fd.write(swagger_html.body.decode())
redoc_html = get_redoc_html(openapi_url="openapi.json",
title=app.title + " - ReDoc")
redoc_html = get_redoc_html(openapi_url="openapi.json", title=app.title + " - ReDoc")
with open("../docs/redoc.html", "w") as fd:
fd.write(redoc_html.body.decode())