Skip to content

Commit

Permalink
allow locations in requirements files (#1093)
Browse files Browse the repository at this point in the history
pip allows packages to be specified by location (e.g. a git repo), but
this will fail the requirements check because `@` isn't a version
restriction
  • Loading branch information
richrines1 authored Oct 17, 2024
1 parent 1ff3969 commit bc44802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks-superstaq/checks_superstaq/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def _are_pip_requirements(requirements: list[str]) -> bool:


def _get_package_name(requirement: str) -> str:
return re.split(">|<|~|=", requirement)[0]
return re.split(r"[><~=@]", requirement)[0]


def _sort_requirements(requirements: list[str]) -> tuple[bool, list[str]]:
Expand Down

0 comments on commit bc44802

Please sign in to comment.