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

Move formatting of explanations into the report formatter #19

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jan 9, 2024

Moves formatting of explanations into the report formatter trait allowing customization by users outside of the library.

zanieb added a commit to astral-sh/uv that referenced this pull request Jan 10, 2024
Closes #810
Closes #812
Requires astral-sh/pubgrub#19 and
astral-sh/pubgrub#18

- Always pair package ranges with names e.g. `... of a matching a<1.0`
instead of `... of a matching <1.0`
- Split range segments onto multiple lines when not a singleton as
suggested in
[#850](#850 (comment))
- Improve formatting when ranges are split across multiple lines e.g. by
avoiding extra spaces and improving wording

Note review will require expanding the hidden files as there are
significant changes to the report formatter and snapshots.

Bear with me here as these are definitely not perfect still.

The following changes build on top of this independently for further
improvements:
- #868 
- #867 
- #866 
- #871
@zanieb zanieb merged commit f01151d into main Jan 12, 2024
5 checks passed
@Eh2406
Copy link

Eh2406 commented Jan 12, 2024

As I recall, this was one of the things I was working on in my refactor of the formatting trait. Of course, mine was just a spike and completely unmoored from actual users needs. When you figure out what a user will use, I look forward to up screaming this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants