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

Fix version display in CLI #65

Merged
merged 2 commits into from
Apr 3, 2020
Merged

Fix version display in CLI #65

merged 2 commits into from
Apr 3, 2020

Conversation

k4nar
Copy link
Contributor

@k4nar k4nar commented Apr 3, 2020

Successful PR Checklist:

  • Tests
  • Had a good time contributing? (feel free to give some feedback)

Before/After:
DeepinScreenshot_select-area_20200403120613

@@ -17,3 +17,6 @@ def from_string(cls, version_string: str) -> "Version":
except (AssertionError, ValueError) as exc:
raise exceptions.InvalidVersion(str(exc)) from exc
return cls(version_tuple=version_tuple, original_string=version_string)

def __str__(self):
return self.original_string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

An alternative would be to do '.'.join(self.version_tuple), but I think keeping the original string is less confusing for users.

@k4nar k4nar force-pushed the fix-version-display branch from 52d6916 to f5fa2fc Compare April 3, 2020 10:12
@codecov
Copy link

codecov bot commented Apr 3, 2020

Codecov Report

Merging #65 into master will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
+ Coverage   71.75%   71.84%   +0.08%     
==========================================
  Files          15       15              
  Lines         648      650       +2     
  Branches       87       87              
==========================================
+ Hits          465      467       +2     
  Misses        171      171              
  Partials       12       12              
Flag Coverage Δ
#integration 48.00% <100.00%> (+0.16%) ⬆️
#unit 60.92% <100.00%> (+0.12%) ⬆️
Impacted Files Coverage Δ
septentrion/versions.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9406a16...f5fa2fc. Read the comment docs.

@ewjoachim ewjoachim merged commit d78d0c9 into master Apr 3, 2020
@ewjoachim ewjoachim deleted the fix-version-display branch April 3, 2020 10:55
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