Skip to content

Add option --config to set the pyproject.toml configuration file path. #656

Closed
@thomasfinchbr

Description

@thomasfinchbr

Description

I was not able to find how to use commitizen with a pyproject.toml file that is not in the root folder.

Thus I would like to suggest the addition of the configuration option --config that could be used in pre-commit config like this:

-   repo: https://github.com/commitizen-tools/commitizen
    rev: v2.31.0
    hooks:
    -   id: commitizen
        additional_dependencies: ['toml']
        stages: [commit-msg]
        args:
        - --config=config/pyproject.toml

Possible Solution

No response

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