Skip to content

Commit

Permalink
Filter out unnecessary constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Dec 24, 2024
1 parent 24f2e6a commit d1a1fdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/scripts/merge_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def get_requirements(fp: TextIO) -> List[RequirementData]:
via_prefix = "via "
if source.startswith(via_prefix):
source = source[len(via_prefix) :]
if source.startswith("-c ") and source != "-c base.txt":
continue
current.comments.add(source)
elif line and not line.startswith(("#", " ")):
current = RequirementData(line)
Expand Down

0 comments on commit d1a1fdd

Please sign in to comment.