Skip to content

Commit 9c9cd68

Browse files
committed
lint and fix package
1 parent 8a308c4 commit 9c9cd68

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

_delphi_utils_python/delphi_utils/validator/datafetcher.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@ def get_geo_signal_combos(data_source, api_key):
120120

121121
response = Epidata.covidcast_meta()
122122

123+
# pylint: disable=R1720
123124
if response["result"] != 1:
124125
# Something failed in the API and we did not get real metadata
125126
raise RuntimeError("Error when fetching metadata from the API", response["message"])
126127

128+
# pylint: disable=I0021
127129
else:
128130
meta = pd.DataFrame.from_dict(response["epidata"])
129131
# note: this will fail for signals with weekly data, but currently not supported for validation
@@ -187,17 +189,19 @@ def fetch_api_reference(data_source, start_date, end_date, geo_type, signal_type
187189
# Something failed in the API and we did not get real signal data
188190
raise RuntimeError("Error when fetching signal data from the API", response["message"])
189191

192+
# pylint: disable=E1124
190193
if response["message"] not in {"success", "no results"}:
194+
# pylint: disable=E1123
191195
warnings.warn(
192196
"Problem obtaining data",
197+
# pylint: disable=E0602
193198
RuntimeWarning,
194199
message=response["message"],
195200
data_source=data_source,
196201
signal=signal,
197202
time_value=params["time_values"],
198203
geo_type=geo_type,
199204
)
200-
logger.info(f"Trying calling covidcast again")
201205
response = Epidata.covidcast(
202206
data_source,
203207
signal_type,

sir_complainsalot/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
required = [
55
"darker[isort]~=2.1.1",
6+
"delphi-epidata"
67
"delphi-utils",
78
"pandas",
89
"pylint==2.8.3",

0 commit comments

Comments
 (0)