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

Improved message for syntax check #662

Merged
merged 5 commits into from
May 29, 2019

Conversation

JayjeetAtGithub
Copy link
Collaborator

Addresses #657.

@pep8speaks
Copy link

pep8speaks commented May 29, 2019

Hello @JayjeetAtGithub! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 159:80: E501 line too long (83 > 79 characters)

Comment last updated at 2019-05-29 17:58:00 UTC

@JayjeetAtGithub JayjeetAtGithub marked this pull request as ready for review May 29, 2019 11:54
@@ -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))
Copy link
Collaborator

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))
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

@ivotron ivotron merged commit ca77aa0 into getpopper:master May 29, 2019
ivotron pushed a commit that referenced this pull request May 24, 2020
ivotron pushed a commit that referenced this pull request May 25, 2020
ivotron pushed a commit that referenced this pull request May 25, 2020
ivotron pushed a commit that referenced this pull request May 25, 2020
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.

3 participants