-
Notifications
You must be signed in to change notification settings - Fork 97
Fix #208: Introduce VersionInfo.isvalid() function #209
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
Conversation
I'm fine with both with naming and the fact it's a class method. |
55f5822
to
e882af5
Compare
Ok, I've updated the commit and inserted an entry for the CHANGELOG. |
Waiting some days to have others @python-semver/reviewers feedback before merging. |
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.
LGTM :)
Maybe you could add this command to CLI app as well (e.g. subcommand "check")?
@ppkt Good point Karol! 👍 I've never thought about this. 😄 Ok, will amend this PR |
3df41bc
to
9b8c896
Compare
@ppkt Karl, I've added this subcommand now and extended the manpage. However, I've realized that I added is as |
952eb46
to
df82b34
Compare
* VersionInfo.isvalid(cls, version:str) -> bool * Add test case * Describe function in documentation * Amend pysemver script with "check" subcommand * Update manpage (pysemver.rst) * Update `CHANGELOG.rst`
df82b34
to
18e332a
Compare
I've also added testcase to test the |
great idea to also add such command to cli also! |
@scls19fr, @ppkt I realized, the implementation of the subcommands are a bit suboptimal. I will optimize this in a separate commit. 😉 Any other wishes, comments, ideas, etc.? |
Looks really great, thank you :) |
This PR fixes #208 and contains:
VersionInfo.isvalid(cls, version:str) -> bool
As I expect some discussions and as this is still WIP, I haven't completed the CHANGELOG entry yet. 😉
Update 2019-12-08: Add entry in
CHANGELOG.rst
.Update 2019-12-09: Insert
check
subcommand intopysemver
command.