-
Notifications
You must be signed in to change notification settings - Fork 61
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
Improved message for syntax check #662
Conversation
Hello @JayjeetAtGithub! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-05-29 17:58:00 UTC |
cli/popper/parser.py
Outdated
@@ -155,7 +155,8 @@ def _validate_syntax(self): | |||
wf_block = list(self._workflow['workflow'].values())[0] | |||
for key in wf_block.keys(): | |||
if key not in VALID_WORKFLOW_ATTRS: | |||
log.fail('Invalid attrs found.') | |||
log.fail( | |||
'Invalid workflow attribute {} was found.'.format(key)) |
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.
can we single quote the value, i.e. "Invalid workflow attribute '{}' was found"
?
log.fail('Invalid attrs found.') | ||
log.fail( | ||
'Invalid action attribute {} was ' | ||
'found.'.format(key)) |
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.
same as above
Addresses #657.