Skip to content

Commit d6d3e07

Browse files
committed
Fixed black formatting, error on failed coverage
1 parent f2ff7d1 commit d6d3e07

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ set_ray_coveragerc()
167167
show_coverage_report()
168168
{
169169
set_ray_coveragerc
170-
coverage report --show-missing --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
170+
coverage report --show-missing --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,versions.py,ray_python_version.py $fcoveragerc
171+
check_errs $?
171172
}
172173

173174
test_custom()

versions.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,23 +232,21 @@ def get_minor_versions_between(start_version_str, end_version_str):
232232

233233
def _get_scipy_pypi():
234234
url = "https://pypi.org/project/scipy/"
235-
req = request.Request(
236-
url,
237-
data=None,
238-
headers=HEADERS
239-
)
235+
req = request.Request(url, data=None, headers=HEADERS)
240236
return request.urlopen(req).read().decode("utf-8")
241237

242238

243239
def get_latest_scipy_version():
244240
html = _get_scipy_pypi()
245-
match = re.search(r'scipy\s+(\d+\.\d+\.\d+)', html, re.DOTALL)
241+
match = re.search(r"scipy\s+(\d+\.\d+\.\d+)", html, re.DOTALL)
246242
return match.groups()[0]
247243

248244

249245
def get_latest_scipy_python_version():
250246
html = _get_scipy_pypi()
251-
python_versions = list(set(re.findall(r'Python\s+\:\:\s+(\d+\.\d+)', html, re.DOTALL)))
247+
python_versions = list(
248+
set(re.findall(r"Python\s+\:\:\s+(\d+\.\d+)", html, re.DOTALL))
249+
)
252250
python_version = sorted(python_versions, key=Version)[-1]
253251
return f"<={python_version}"
254252

0 commit comments

Comments
 (0)