mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-24 11:48:12 +08:00
flake8/lint cleanup
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
recursive-include server/app/web/templates *
|
||||
recursive-include server/app/web/static *
|
||||
recursive-include server/app/web/static *
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ cp client/build/index.html server/app/web/templates/
|
||||
cp -r client/build/static server/app/web/
|
||||
|
||||
cp client/build/favicon.png server/app/web/static/img
|
||||
cp client/build/service-worker.js server/app/web/static/js/
|
||||
cp client/build/service-worker.js server/app/web/static/js/
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
from . import app
|
||||
@@ -10,7 +10,6 @@ from .rest_api.rest import get_api_resources
|
||||
|
||||
REACTIVE_LIMIT = 1_000_000
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
Compress(app)
|
||||
CORS(app)
|
||||
@@ -40,8 +39,6 @@ if app.config["ENGINE"] == "scanpy":
|
||||
from .scanpy_engine.scanpy_engine import ScanpyEngine
|
||||
data = ScanpyEngine(app.config["DATA"], schema="data_schema.json")
|
||||
|
||||
|
||||
|
||||
# A list of swagger document objects
|
||||
docs = []
|
||||
resources = get_api_resources()
|
||||
@@ -53,10 +50,8 @@ app.register_blueprint(
|
||||
get_swagger_blueprint(docs, "/api/swagger", produces=["application/json"], title="cellxgene rest api",
|
||||
description="An API connecting ExpressionMatrix2 clustering algorithm to cellxgene"))
|
||||
|
||||
|
||||
app.add_url_rule("/", endpoint="index")
|
||||
|
||||
|
||||
def main():
|
||||
app.run(host="0.0.0.0", debug=True, port=5005)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user