Skip to content

Commit b8b7fc6

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

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: repo2docker/contentproviders/hydroshare.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class Hydroshare(DoiProvider):
1515

1616
def _fetch_version(self, host):
1717
"""Fetch resource modified date and convert to epoch"""
18-
json_response = self.session.get(host["version"].format(self.resource_id)).json()
18+
json_response = self.session.get(
19+
host["version"].format(self.resource_id)
20+
).json()
1921
date = next(
2022
item for item in json_response["dates"] if item["type"] == "modified"
2123
)["start_date"]

Diff for: setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def finalize_options(self):
2626

2727
def run(self):
2828
import json
29+
2930
import requests
3031

3132
resp = requests.get(self.url)

0 commit comments

Comments
 (0)