aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-07-23 11:58:41 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-07-23 11:58:41 -0700
commitd01ab339a0aa568b6ccd6c56beb611a2e7ac9686 (patch)
treee10c16db8dda293727f38d9f00a1b3c410cdd887
parentc41e8531692c2f3973cee647bf2e1810fa917397 (diff)
downloadfatcat-d01ab339a0aa568b6ccd6c56beb611a2e7ac9686.tar.gz
fatcat-d01ab339a0aa568b6ccd6c56beb611a2e7ac9686.zip
remove unused imports (lint)
-rw-r--r--python/fatcat_tools/references.py3
-rw-r--r--python/fatcat_tools/transforms/access.py2
-rw-r--r--python/fatcat_web/ref_routes.py7
3 files changed, 4 insertions, 8 deletions
diff --git a/python/fatcat_tools/references.py b/python/fatcat_tools/references.py
index da398239..67a16602 100644
--- a/python/fatcat_tools/references.py
+++ b/python/fatcat_tools/references.py
@@ -6,14 +6,13 @@ See bulk citation and citation API proposals for design documentation.
"""
import sys
-import json
import datetime
import argparse
from typing import Optional, List, Any, Dict, Union
from pydantic import BaseModel
import elasticsearch
-from elasticsearch_dsl import Search, Q
+from elasticsearch_dsl import Search
from fatcat_openapi_client import ReleaseEntity
from fatcat_tools import public_api
diff --git a/python/fatcat_tools/transforms/access.py b/python/fatcat_tools/transforms/access.py
index 231cd2b3..add8ff3b 100644
--- a/python/fatcat_tools/transforms/access.py
+++ b/python/fatcat_tools/transforms/access.py
@@ -1,6 +1,6 @@
from enum import Enum
-from typing import Optional, List, Any, Dict
+from typing import Optional, List
from pydantic import BaseModel
from fatcat_openapi_client import ReleaseEntity
diff --git a/python/fatcat_web/ref_routes.py b/python/fatcat_web/ref_routes.py
index e24b4ac6..7c3ba5bd 100644
--- a/python/fatcat_web/ref_routes.py
+++ b/python/fatcat_web/ref_routes.py
@@ -3,17 +3,14 @@ Flask endpoints for reference (citation) endpoints. Eg, listing references
"inbound" and "outbound" from a specific release or work.
"""
-from typing import Optional
-
-from flask import render_template, abort, redirect, request
+from flask import render_template, request
from fatcat_openapi_client import *
-from fatcat_openapi_client.rest import ApiException
from fuzzycat.grobid_unstructured import grobid_api_process_citation, transform_grobid_ref_xml, grobid_ref_to_release
from fuzzycat.simple import close_fuzzy_biblio_matches, close_fuzzy_release_matches
from fatcat_tools.references import enrich_inbound_refs, enrich_outbound_refs, get_inbound_refs, get_outbound_refs
from fatcat_tools.transforms.access import release_access_options
-from fatcat_web import app, api, auth_api
+from fatcat_web import app, api
from fatcat_web.forms import *
from fatcat_web.entity_helpers import *