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

feat: all_errors #170

Merged
merged 2 commits into from
Sep 27, 2024
Merged

feat: all_errors #170

merged 2 commits into from
Sep 27, 2024

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Sep 24, 2024

Close #45. Adds an all_errors parameter that causes all errors to be collected and shown in a ExceptionGroup. The output is a bit ugly for <3.11, but no dependency is required. A build backend can use the backport by replacing pyproject_metadata.errors.ExceptionGroup.

If we submit to packaging, this would be the default there #140. And if we do, then I'd be very likely to want the back port here eventually, since a user can use packaging if they need minimal deps. Though, "eventually" probably would be around the time 3.11 becomes the minimum... so yeah, might not happen.

I've also added quite a few missing key= params as well as provided better descriptions in a few cases.

@henryiii henryiii force-pushed the henryiii/feat/multierror branch 4 times, most recently from 6d7997b to 13489c3 Compare September 26, 2024 07:05
@henryiii henryiii changed the title WIP: multierror feat: all_errors Sep 26, 2024
@henryiii henryiii marked this pull request as ready for review September 26, 2024 07:07
@henryiii henryiii force-pushed the henryiii/feat/multierror branch from c146bd0 to f55bd4b Compare September 26, 2024 16:04
Signed-off-by: Henry Schreiner <[email protected]>
@henryiii henryiii force-pushed the henryiii/feat/multierror branch from f55bd4b to 3af5e90 Compare September 26, 2024 16:07
@henryiii henryiii force-pushed the henryiii/feat/multierror branch from 638be07 to 4dafe4d Compare September 27, 2024 04:59
@henryiii henryiii merged commit 72b695b into pypa:main Sep 27, 2024
24 checks passed
@henryiii henryiii deleted the henryiii/feat/multierror branch September 27, 2024 05:17
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.

Report all pyproject.toml validation errors at once
1 participant