-
-
Notifications
You must be signed in to change notification settings - Fork 281
refactor(bump): code cleanup and better test coverage #1422
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
base: master
Are you sure you want to change the base?
refactor(bump): code cleanup and better test coverage #1422
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1422 +/- ##
==========================================
+ Coverage 97.33% 97.68% +0.34%
==========================================
Files 42 57 +15
Lines 2104 2680 +576
==========================================
+ Hits 2048 2618 +570
- Misses 56 62 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -148,7 +144,7 @@ def __call__(self) -> None: # noqa: C901 | |||
except TypeError: | |||
raise NoVersionSpecifiedError() | |||
|
|||
bump_commit_message: str = self.bump_settings["bump_message"] | |||
bump_commit_message: str | None = self.bump_settings["bump_message"] |
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.
This type should be str | None
because the default value is None
. Not sure if we can improve the type safety here.
Let me reorganize the commits. |
c952dc9
to
e5226f3
Compare
Description
Checklist
Code Changes
poetry all
locally to ensure this change passes linter check and testsDocumentation Changes
poetry doc
locally to ensure the documentation pages renders correctlyExpected Behavior
Steps to Test This Pull Request
Additional Context