diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 14:39:27 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 18:25:58 -0700 |
commit | 4362e60383bef09d5989830b19ae2d5dec506620 (patch) | |
tree | 3d1d51b6fa88084ce64895ec92c821d7a3d81844 /fatcat_scholar/transform.py | |
parent | b4d0bfb643842e6070a4ee36cfc52e2292e3b5ba (diff) | |
download | fatcat-scholar-4362e60383bef09d5989830b19ae2d5dec506620.tar.gz fatcat-scholar-4362e60383bef09d5989830b19ae2d5dec506620.zip |
lint: remove all 'import *' uses
Diffstat (limited to 'fatcat_scholar/transform.py')
-rw-r--r-- | fatcat_scholar/transform.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index db631cf..3213b8d 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -1,5 +1,6 @@ import argparse import datetime +import json import sys import xml.etree.ElementTree import xml.etree.ElementTree as ET @@ -8,11 +9,28 @@ from typing import Any, Dict, List, Optional, Sequence import sentry_sdk from fatcat_openapi_client import FileEntity, ReleaseEntity, WebcaptureEntity -from fatcat_scholar.api_entities import * from fatcat_scholar.config import GIT_REVISION, settings from fatcat_scholar.grobid2json import teixml2json from fatcat_scholar.identifiers import clean_doi, clean_pmcid -from fatcat_scholar.schema import * +from fatcat_scholar.schema import ( + AccessType, + DocType, + IntermediateBundle, + RefBiblio, + RefStructured, + ScholarAbstract, + ScholarAccess, + ScholarBiblio, + ScholarDoc, + ScholarFulltext, + ScholarSim, + clean_small_int, + clean_url_conservative, + es_abstracts_from_grobid, + es_abstracts_from_release, + es_biblio_from_release, + es_release_from_release, +) MAX_BODY_CHARS = 512 * 1024 |