diff options
author | Munyoki Kilyungi | 2024-03-21 17:23:51 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-03-26 10:01:13 +0300 |
commit | 7c77ff91f6530aca0865bd13025811f2f93e3541 (patch) | |
tree | 5b524a8ecaef6a6803e220951455f6bc7f1ce420 | |
parent | 65a702fe8cac38051411049ef4601c1cddeea865 (diff) | |
download | genenetwork2-7c77ff91f6530aca0865bd13025811f2f93e3541.tar.gz |
Remove unused imports.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | gn2/wqflask/oauth2/client.py | 6 | ||||
-rw-r--r-- | gn2/wqflask/oauth2/resources.py | 2 | ||||
-rw-r--r-- | gn2/wqflask/views.py | 14 |
3 files changed, 6 insertions, 16 deletions
diff --git a/gn2/wqflask/oauth2/client.py b/gn2/wqflask/oauth2/client.py index 4e2c67f2..e9f747f4 100644 --- a/gn2/wqflask/oauth2/client.py +++ b/gn2/wqflask/oauth2/client.py @@ -1,12 +1,10 @@ """Common oauth2 client utilities.""" -import uuid import json import requests -from typing import Any, Optional +from typing import Optional from urllib.parse import urljoin -from flask import jsonify, current_app as app -from pymonad.maybe import Just, Maybe, Nothing +from flask import current_app as app from pymonad.either import Left, Right, Either from authlib.integrations.requests_client import OAuth2Session diff --git a/gn2/wqflask/oauth2/resources.py b/gn2/wqflask/oauth2/resources.py index b8ca21fb..32efbd2a 100644 --- a/gn2/wqflask/oauth2/resources.py +++ b/gn2/wqflask/oauth2/resources.py @@ -1,7 +1,7 @@ import uuid from flask import ( - flash, request, jsonify, url_for, redirect, Response, Blueprint) + flash, request, url_for, redirect, Response, Blueprint) from . import client from .ui import render_ui diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index f7759366..81e92c9b 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -41,14 +41,11 @@ from flask import redirect from flask import send_file from flask import url_for from flask import flash -from flask import session -# Some of these (like collect) might contain endpoints, so they're still used. -# Blueprints should probably be used instead. -from gn2.wqflask import collect from gn2.wqflask import search_results from gn2.wqflask import server_side -from gn2.base.data_set import create_dataset # Used by YAML in marker_regression +# Used by YAML in marker_regression +from gn2.base.data_set import create_dataset from gn2.wqflask.show_trait import show_trait from gn2.wqflask.show_trait import export_trait_data from gn2.wqflask.show_trait.show_trait import get_diff_of_vals @@ -61,12 +58,8 @@ from gn2.wqflask.marker_regression import run_mapping from gn2.wqflask.marker_regression.exceptions import NoMappingResultsError from gn2.wqflask.marker_regression import display_mapping_results from gn2.wqflask.network_graph import network_graph -from gn2.wqflask.correlation.show_corr_results import set_template_vars -from gn2.wqflask.correlation.correlation_gn3_api import compute_correlation -from gn2.wqflask.correlation.rust_correlation import compute_correlation_rust from gn2.wqflask.correlation_matrix import show_corr_matrix from gn2.wqflask.correlation import corr_scatter_plot -from gn2.wqflask.correlation.exceptions import WrongCorrelationType from gn2.wqflask.ctl.gn3_ctl_analysis import run_ctl from gn2.wqflask.wgcna.gn3_wgcna import run_wgcna @@ -76,11 +69,10 @@ from gn2.wqflask.export_traits import export_traits from gn2.wqflask.gsearch import GSearch from gn2.wqflask.update_search_results import GSearch as UpdateGSearch from gn2.wqflask.docs import Docs, update_text -from gn2.wqflask.db_info import InfoPage from gn2.wqflask.oauth2 import client from gn2.wqflask.oauth2.client import no_token_get -from gn2.wqflask.oauth2.request_utils import with_flash_error, with_flash_success +from gn2.wqflask.oauth2.request_utils import with_flash_error from gn2.utility import temp_data from gn2.utility.tools import get_setting |