Skip to content

Conversation

6C1
Copy link

@6C1 6C1 commented Jan 21, 2017

This method allows the incrementation level to be passed as a parameter.

if version_level not in (MAJOR, MINOR, PATCH):
raise ValueError(
'Version level must be one of {}, {} or {}'
.format(MAJOR, MINOR, PATCH)
Copy link

Choose a reason for hiding this comment

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

the linter doesnt like this.

A trick I often use here is:

            raise ValueError(
                'Version level must be one of {}, {} or {}'
                ''.format(MAJOR, MINOR, PATCH)

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.

2 participants