Skip to content

Commit

Permalink
Merge pull request #2093 from mirpedrol/lint-container-quotes
Browse files Browse the repository at this point in the history
change requests get by head
  • Loading branch information
mirpedrol authored Dec 2, 2022
2 parents b2a3a26 + 296fc8b commit 9974e0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nf_core/modules/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,10 @@ def check_process_section(self, lines, fix_version, progress_bar):
if url is None:
continue
try:
response = requests.get(
response = requests.head(
"https://" + urlunparse(url) if not url.scheme == "https" else urlunparse(url),
stream=True,
allow_redirects=True,
)
log.debug(
f"Connected to URL: {'https://' + urlunparse(url) if not url.scheme == 'https' else urlunparse(url)}, "
Expand Down
1 change: 0 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def mock_api_calls(mock, module, version):
f"https://api.biocontainers.pro/ga4gh/trs/v2/tools/{module}/versions/{module}-{version.split('--')[0]}"
)
anaconda_api_url = f"https://api.anaconda.org/package/bioconda/{module}"
mock.register_uri("GET", biocontainers_api_url, text="to modify when the api works and I can know what to add")
anaconda_mock = {
"status_code": 200,
"latest_version": version.split("--")[0],
Expand Down

0 comments on commit 9974e0d

Please sign in to comment.