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

Parameterized next method wrapper #50

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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