Skip to content

Commit baeb839

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 44ad5b5 commit baeb839

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

dandischema/datacite/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@
1414
from jsonschema import Draft7Validator
1515
import requests
1616

17-
from ..models import NAME_PATTERN, Organization, Person, PublishedDandiset, RoleType, Dandiset
17+
from ..models import (
18+
NAME_PATTERN,
19+
Dandiset,
20+
Organization,
21+
Person,
22+
PublishedDandiset,
23+
RoleType,
24+
)
1825

1926
DATACITE_CONTRTYPE = {
2027
"ContactPerson",
@@ -64,6 +71,7 @@
6471
}
6572
DATACITE_MAP = {el.lower(): el for el in DATACITE_IDENTYPE}
6673

74+
6775
def to_datacite(
6876
meta: Union[dict, PublishedDandiset],
6977
event: str = None,
@@ -76,7 +84,6 @@ def to_datacite(
7684
elif not version_doi and not isinstance(meta, Dandiset):
7785
meta = Dandiset(**meta)
7886

79-
8087
attributes: Dict[str, Any] = {}
8188

8289
# None event means create a Draft DOI

0 commit comments

Comments
 (0)