Skip to content

Make Argument Clinic exit with an error if a warning was emitted - #158930

Open
StanFromIreland wants to merge 2 commits into
python:mainfrom
StanFromIreland:clinic-fail-on-warning
Open

StanFromIreland wants to merge 2 commits into
python:mainfrom
StanFromIreland:clinic-fail-on-warning

Conversation

@StanFromIreland

Copy link
Copy Markdown
Member

This would have avoided #158892.

@cmaloney cmaloney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like maybe this should be a -Werror type option in the CI?

Would be nice to have some form of tests (run clinic on a text snippet which produces a warning and check the exit code) to help make sure this doesn't regress.

@StanFromIreland

Copy link
Copy Markdown
Member Author

Seems like maybe this should be a -Werror type option in the CI?

I thought about this, however, if it's failing in the CI I think users would prefer for it to also fail, to catch such things before pushing.

Would be nice to have some form of tests

Sure, added.

@cmaloney cmaloney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the test, looks good to me. Makes sense we can change default behavior and having only one behavior is nice when possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants