Skip to content

Commit 1ac79fe

Browse files
committed
fix(init): poetry detection
1 parent 5b05a96 commit 1ac79fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/commands/init.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def is_python_poetry(self) -> bool:
3636
if not self.has_pyproject:
3737
return False
3838
with open("pyproject.toml") as f:
39-
return "tool.poetry.version" in f.read()
39+
return "[tool.poetry]" in f.read()
4040

4141
@property
4242
def is_python(self) -> bool:

0 commit comments

Comments
 (0)