aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-02 18:05:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-02 18:05:23 -0700
commit78f08280edea4ff65ca613ad30005c45cc48dea6 (patch)
tree6cb0408dde68f4ca8093fef18956c85f58882ccf /python/fatcat_tools/transforms
parent46b4f588b2e58fe5d2d4b1a885c095f24c6cd400 (diff)
downloadfatcat-78f08280edea4ff65ca613ad30005c45cc48dea6.tar.gz
fatcat-78f08280edea4ff65ca613ad30005c45cc48dea6.zip
python: isort everything
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/access.py4
-rw-r--r--python/fatcat_tools/transforms/csl.py10
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py11
3 files changed, 17 insertions, 8 deletions
diff --git a/python/fatcat_tools/transforms/access.py b/python/fatcat_tools/transforms/access.py
index 39d4c6d3..ae9880e7 100644
--- a/python/fatcat_tools/transforms/access.py
+++ b/python/fatcat_tools/transforms/access.py
@@ -1,9 +1,9 @@
from enum import Enum
-from typing import Optional, List
+from typing import List, Optional
-from pydantic import BaseModel
from fatcat_openapi_client import ReleaseEntity
+from pydantic import BaseModel
class AccessType(str, Enum):
diff --git a/python/fatcat_tools/transforms/csl.py b/python/fatcat_tools/transforms/csl.py
index 0556f4fe..f8b26bce 100644
--- a/python/fatcat_tools/transforms/csl.py
+++ b/python/fatcat_tools/transforms/csl.py
@@ -1,9 +1,13 @@
import json
-from citeproc import CitationStylesStyle, CitationStylesBibliography
-from citeproc import Citation, CitationItem
-from citeproc import formatter
+from citeproc import (
+ Citation,
+ CitationItem,
+ CitationStylesBibliography,
+ CitationStylesStyle,
+ formatter,
+)
from citeproc.source.json import CiteProcJSON
from citeproc_styles import get_style_filepath
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index ec5891c3..1826d4eb 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -1,10 +1,15 @@
import datetime
-from typing import Dict, Any, Optional
+from typing import Any, Dict, Optional
import tldextract
-
-from fatcat_openapi_client import ReleaseEntity, ContainerEntity, EntityEdit, ChangelogEntry, FileEntity
+from fatcat_openapi_client import (
+ ChangelogEntry,
+ ContainerEntity,
+ EntityEdit,
+ FileEntity,
+ ReleaseEntity,
+)
def check_kbart(year: int, archive: dict) -> Optional[bool]: