-
-
Notifications
You must be signed in to change notification settings - Fork 300
fix(Init): fix a typo in _ask_version_provider options and remove unnecessary filter #1528
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(Init): fix a typo in _ask_version_provider options and remove unnecessary filter #1528
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v4-9-0-test #1528 +/- ##
==============================================
Coverage ? 98.09%
==============================================
Files ? 58
Lines ? 2683
Branches ? 0
==============================================
Hits ? 2632
Misses ? 51
Partials ? 0
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:
|
commitizen/commands/init.py
Outdated
"uv": "uv: Get and set version from pyproject.toml and uv.lock", | ||
"scm": "scm: Fetch the version from git and does not need to set it back", | ||
} | ||
options = ( |
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.
options = ( | |
# (tool_name, description) | |
options = ( |
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.
named tuple might be better but comment works for me as well
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.
let's do named tuple
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.
Hi, I added a named tuple for it, please review.
35677c1
to
1c02970
Compare
commitizen/commands/init.py
Outdated
@@ -17,6 +17,54 @@ | |||
from commitizen.version_schemes import KNOWN_SCHEMES, Version, get_version_scheme | |||
|
|||
|
|||
class _VersionProviderOption(NamedTuple): | |||
value: str |
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.
value: str | |
provider_name: str |
value is vague
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.
done
…ecessary filter, use named tuple for options
1c02970
to
d966d5f
Compare
Description
uv
optionChecklist