commitizen icon indicating copy to clipboard operation
commitizen copied to clipboard

Add option for "cz.toml" config file

Open marcosdotme opened this issue 1 year ago • 0 comments

Description

Actually we can configure the commitizen through:

Dot files:

.cz.toml
.cz.yaml
.cz.json

Non dot files:

pyproject.toml
cz.yaml
cz.json

Theres an reason for not having an "cz.toml" without the dot? I like that my config files be explicit and not hidded. Can I open an PR to add this support? Seems easy to do.

Possible Solution

Include "cz.toml" on commitizen.defaults.config_files:

# commitizen.defaults.py

config_files: list[str] = [
    "pyproject.toml",
    ".cz.toml",
    ".cz.json",
    "cz.json",
    ".cz.yaml",
    "cz.yaml",
+   "cz.toml"
]

Additional context

No response

Additional context

No response

marcosdotme avatar May 15 '24 13:05 marcosdotme