-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Should .cz.toml
actually include the tool
table?
#1114
Comments
Thanks for opening this issue. Sounds valid to me but could potentially be a breaking change. maybe we could change it in v4. @woile @noirbizarre what do you think? |
Personally I like being able to copy-paste, and it's feels like opening the window for a whole new set of bugs for very little in return |
I don't have a strong opinion on this one. But if we have an objection from the maintainer, I think we probably won't change this. I'll keep it for a few days before closing it. @paduszyk @noirbizarre please let us know if you have any thought 🙂 |
@Lee-W Thanks for considering it anyway 🙂 |
I'll close it for now and mark it as |
Description
I like that the
commitizen
can be configured via the tool-specific file like.cz.toml
.The configuration is based on the
tool
root table, e.g.:what corresponds to the convention used in
pyproject.toml
- i.e. the same piece of config as the one above can be copy-pasted directly topyproject.toml
without any updates. That's cool.I think, however, that the config in
.cz.toml
should not be based on thetool
table, because this may suggest (somewhat) that the file is not entirelycommitizen
-specific.Therefore, I would go simply with:
or
Of course, one can avoid a breaking change by making this optional.
Possible Solution
References to
[tool.commitizen]
are found incommitizen.config.toml_config
module. Thus, any changes should involve updating the methods of theTomlConfig
class.Additional context
No response
Additional context
There are some Python tools using this approach, e.g.:
The last two of them use INI format, however.
The text was updated successfully, but these errors were encountered: