-
Notifications
You must be signed in to change notification settings - Fork 94
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
cylc lint non zero code from warnings #5546
cylc lint non zero code from warnings #5546
Conversation
fb3e9a3
to
40a1f64
Compare
Not a bugfix but small and isolated enough to go into 8.1.5 IMO. |
(I agree, this should be the default behaviour) |
40a1f64
to
f91c568
Compare
Ok. Updated
|
Previously it would provide a return code 0 always. By default, it will now return 1 if an issue is found. New flag --exit-zero changes back to original behaviour.
f91c568
to
e8e2389
Compare
Huh, I was not even aware of (non- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
It's how you get out of interactive sessions, not sure how that got into the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
It's not how I get out (Ctrl-D). |
…github.com:wxtim/cylc into fix.sort_lint_listing--correct_number_for_line_len * 'fix.sort_lint_listing--correct_number_for_line_len' of github.com:wxtim/cylc: `cylc play`: add suggestion for `--upgrade` in non-interactive terminal (cylc#5535) centralize number used for line length check. Respond to review Fix cylc lint commented-out Jinja2 bug Logging: say command actioned instead of succeeded cylc lint non zero code from warnings (cylc#5546) Fix S011 lint (cylc#5536)
Closes #5545
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect usersNo tests - I didn't think they were needed for this change.I have not updated docs as I didn't see where it would be appropriate to add anything about this.
Targetting the 8.1.x branch, but can change if required.