-
-
Notifications
You must be signed in to change notification settings - Fork 281
cz init leads to an exception #367
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
Comments
Just confirm it. Will send a PR these days |
@jgosmann We just fixed it. Please check whether it solves your problem on the latest version. Gonna close this issue. |
Yes, that seems to fix it. The placement of the config in the pyproject.toml is a bit weird because there are two empty lines separating it from the previous section, and no empty line separating it from the next session. But that's only cosmetic. btw: It seems that the publish step of the build pipeline failed. So 2.17.1 isn't available on PyPI yet. |
Another PR #370 for this fix has been sent. |
Description
After running
cz init
, I get an exception once I provided the tag format in a project using apyproject.toml
:Running any other commitizen command after this seems to fail with the same exception. Also, it appends
[tool.commitizen]
to the last line (not below the last line) of thepyproject.toml
, e.g.:Steps to reproduce
Run
cz init
in a project withpyproject.toml
. In case it only happens for specificpyproject.toml
files, use the one from thev0.1.0
tag of py-plato/plato.Current behavior
It throws the exception above. Also, it appends
[tool.commitizen]
to the last line (not below the last line) of thepyproject.toml
, e.g.:Desired behavior
No exception, and the
pyproject.toml
is correctly modified.Environment
The text was updated successfully, but these errors were encountered: