Skip to content

Commit

Permalink
Add script to check for --extra-index-url
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams committed Feb 23, 2024
1 parent 699d9c0 commit fa4d008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/check-extraindexurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def err(s: str) -> None:
capture_output=True,
)
if res.returncode == 0:
err('Error: The string "--extra-index-url" was found.\nPlease replace all calls to --extra-index-url with "--index-url"')
err('Error: The string "--extra-index-url" was found.\nPlease replace all calls to --extra-index-url with "--index-url"'
)
err(res.stdout.decode("utf-8"))
sys.exit(1)
elif res.returncode == 2:
Expand Down

0 comments on commit fa4d008

Please sign in to comment.