-
-
Notifications
You must be signed in to change notification settings - Fork 282
refactor(git,init): code cleanup #1417
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?
Conversation
afe52aa
to
aa57ab1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1417 +/- ##
==========================================
+ Coverage 97.33% 98.25% +0.91%
==========================================
Files 42 57 +15
Lines 2104 2637 +533
==========================================
+ Hits 2048 2591 +543
+ Misses 56 46 -10
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:
|
aa57ab1
to
403febf
Compare
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.
Good cleanup, thanks!
For the f-string remark, I'll let @Lee-W decide
403febf
to
a3a5ca0
Compare
'version = "0.0.1"\n' | ||
"update_changelog_on_bump = true\n" | ||
"major_version_zero = true\n" | ||
'version = "0.0.1"\n' |
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.
Not sure whether the order is important. If so, I think we can enforce the order somewhere.
81f0034
to
08a1aa3
Compare
It seems that some lines are not covered before this PR change. I'll try to cover them. |
08a1aa3
to
5a7fad0
Compare
Just vibe tested the changes. |
commitizen/commands/init.py
Outdated
@@ -67,10 +71,10 @@ def is_php_composer(self) -> bool: | |||
def latest_tag(self) -> str | None: | |||
return get_latest_tag_name() | |||
|
|||
def tags(self) -> list | None: | |||
def tags(self) -> list[str]: | |||
"""Not a property, only use if necessary""" | |||
if self.latest_tag is None: |
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.
The expression here is always false. I'll consider removing the function for simplicity.
214be08
to
d27ab71
Compare
cee142b
to
2a7e8ed
Compare
Finally passed codecov/patch check... |
5538439
to
5f0faae
Compare
5f0faae
to
9430778
Compare
Description
EOLTypes
. I think it's unnecessary.map
.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