Skip to content

Commit d5bc551

Browse files
Fix pylint errors
1 parent 77d578d commit d5bc551

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

frouros/datasets/base.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,17 @@ def _remove_temporal_file(self) -> None:
9999

100100
def _request_file(self, url: str) -> requests.models.Response:
101101
logger.info("Trying to download data from %s to %s", url, self._file_path)
102-
request_head = requests.head(url=url)
102+
request_head = requests.head(
103+
url=url,
104+
timeout=10,
105+
)
103106
if not request_head.ok:
104107
raise requests.exceptions.RequestException()
105-
request_response = requests.get(url=url, stream=True)
108+
request_response = requests.get(
109+
url=url,
110+
stream=True,
111+
timeout=10,
112+
)
106113
request_response.raise_for_status()
107114
return request_response
108115

frouros/detectors/data_drift/batch/statistical_test/chisquare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _statistical_test(
7878
return test
7979

8080
@staticmethod
81-
@typing.no_type_check # FIXME: X_ref_counter and X_counter cause mypy errors
81+
@typing.no_type_check # FIXME: X_ref_counter and X_counter cause mypy errors # pylint: disable=fixme # noqa: E501
8282
def _calculate_frequencies(
8383
X_ref: np.ndarray, # noqa: N803
8484
X: np.ndarray,

0 commit comments

Comments
 (0)