summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
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]: