notify-api-412 use black to enforce python style standards

This commit is contained in:
Kenneth Kehl
2023-08-23 10:35:43 -07:00
parent a7898118d7
commit 026dc14021
586 changed files with 33990 additions and 23461 deletions

View File

@@ -2,10 +2,10 @@ from os import path
from flask import Blueprint, current_app, send_file
docs = Blueprint('docs', __name__, url_prefix='/docs')
docs = Blueprint("docs", __name__, url_prefix="/docs")
@docs.route('/openapi.yml', methods=['GET'])
@docs.route("/openapi.yml", methods=["GET"])
def send_openapi():
openapi_schema = path.join(current_app.root_path, '../docs/openapi.yml')
return send_file(openapi_schema, mimetype='text/yaml'), 200
openapi_schema = path.join(current_app.root_path, "../docs/openapi.yml")
return send_file(openapi_schema, mimetype="text/yaml"), 200