aboutsummaryrefslogtreecommitdiff
path: root/gn3/app.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-09-22 07:53:53 +0300
committerFrederick Muriuki Muriithi2021-09-22 07:57:21 +0300
commitcd7f301688fd9780df1f842f8bd2b7602775ba1f (patch)
treecdbcf8077c532c1b5ba7bc0c934932c1a6eb58ab /gn3/app.py
parent5892ffc7488b0c9cbb4ea08fd5c5f8648e0baea8 (diff)
downloadgenenetwork3-cd7f301688fd9780df1f842f8bd2b7602775ba1f.tar.gz
Fix pylint errors
* Add missing function and module docstrings * Remove unused imports * Fix import order * Rework some code sections to fix issues * Disable some pylint errors.
Diffstat (limited to 'gn3/app.py')
-rw-r--r--gn3/app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn3/app.py b/gn3/app.py
index 6b4c57e..8badb65 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -3,7 +3,10 @@ import os
from typing import Dict
from typing import Union
+
from flask import Flask
+from flask_cors import CORS
+
from gn3.api.gemma import gemma
from gn3.api.rqtl import rqtl
from gn3.api.general import general
@@ -11,8 +14,6 @@ from gn3.api.heatmaps import heatmaps
from gn3.api.correlation import correlation
from gn3.api.data_entry import data_entry
-from flask_cors import CORS
-
def create_app(config: Union[Dict, str, None] = None) -> Flask:
"""Create a new flask object"""
app = Flask(__name__)