Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide index URLs from header if not emitted #1835

Merged

Conversation

DrJackilD
Copy link
Contributor

Summary

Hey guys! The motivation described in #1834

Test Plan

Changed snapshot of the existing tests. --index-url and --extra-index-url occur pretty often, so no extra testing is required, imo.

@zanieb
Copy link
Member

zanieb commented Feb 21, 2024

Thanks for contributing again! I have a couple questions.

@DrJackilD DrJackilD force-pushed the feat/hide-index-urls-if-not-emited branch 4 times, most recently from 8a4bdbe to 8b116f6 Compare February 22, 2024 14:47
Some(Some(arg)) // keep this argument
}
})
.flatten()
.join(" ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, though I may pull it out to its own function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, no problem, extracted to a separate function👍

@DrJackilD DrJackilD force-pushed the feat/hide-index-urls-if-not-emited branch from 8b116f6 to 5276777 Compare February 23, 2024 00:44
@DrJackilD DrJackilD force-pushed the feat/hide-index-urls-if-not-emited branch from 5276777 to 5f7d294 Compare February 23, 2024 01:02
@charliermarsh charliermarsh changed the title Hide index urls from header if not emmited Hide index URLs from header if not emitted Feb 23, 2024
@charliermarsh charliermarsh added the compatibility Compatibility with a specification or another tool label Feb 23, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) February 23, 2024 01:38
@charliermarsh charliermarsh merged commit a7b5c55 into astral-sh:main Feb 23, 2024
7 checks passed
charliermarsh added a commit that referenced this pull request Feb 23, 2024
charliermarsh added a commit that referenced this pull request Feb 23, 2024
@charliermarsh
Copy link
Member

Thank you!

charliermarsh added a commit that referenced this pull request Feb 23, 2024
## Summary

Like #1835, but for `--find-links` (for consistency).
@DrJackilD DrJackilD deleted the feat/hide-index-urls-if-not-emited branch February 23, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with a specification or another tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants