Skip to content

Add option for "cz.toml" config file #1111

Closed
@marcosdotme

Description

@marcosdotme

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions