You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
poetry check exits with error code 1 even when there are only warnings and no hard errors.
This is standard UNIX behavior, but it makes it impossible to distinguish warnings from hard errors.
I disagree. Most tools report success exit code if no errors were encountered, and tools that do, that feature requires explicit opt-in. For example gcc returns 0 exit code unless -Werror (Make all warnings into errors) option was explicitly provided.
Issue Kind
Brand new capability
Description
poetry check
exits with error code1
even when there are only warnings and no hard errors.This is standard UNIX behavior, but it makes it impossible to distinguish warnings from hard errors.
Example scenario
When upgrading Poetry to 2.0, my project.toml file caused
poetry check
to raise warnings, and exit with exit code1
:I don't have a problem with that, but it seems inconvenient that there is no way to check for warnings vs hard errors.
Suggested solutions
Here are two ideas:
2
when there are only warnings and no hard errors--soft-warnings
causingpoetry check
to pass (exit code0
) when there are only warnings and no hard errorsWorkarounds
Suboptimal workaroung:
The text was updated successfully, but these errors were encountered: