chore(api): Introduce Ruff Formatter. (#7291)
This commit is contained in:
@@ -2,15 +2,14 @@ from flask import Flask
|
||||
|
||||
|
||||
def init_app(app: Flask):
|
||||
if app.config.get('API_COMPRESSION_ENABLED'):
|
||||
if app.config.get("API_COMPRESSION_ENABLED"):
|
||||
from flask_compress import Compress
|
||||
|
||||
app.config['COMPRESS_MIMETYPES'] = [
|
||||
'application/json',
|
||||
'image/svg+xml',
|
||||
'text/html',
|
||||
app.config["COMPRESS_MIMETYPES"] = [
|
||||
"application/json",
|
||||
"image/svg+xml",
|
||||
"text/html",
|
||||
]
|
||||
|
||||
compress = Compress()
|
||||
compress.init_app(app)
|
||||
|
||||
|
Reference in New Issue
Block a user