Skip to content
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

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

Closed
thomasfinchbr opened this issue Jan 17, 2023 · 2 comments · Fixed by #1047
Closed

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

thomasfinchbr opened this issue Jan 17, 2023 · 2 comments · Fixed by #1047
Assignees
Labels
good first issue type: feature A new enhacement proposal

Comments

@thomasfinchbr
Copy link

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

@thomasfinchbr thomasfinchbr added the type: feature A new enhacement proposal label Jan 17, 2023
@rockleona
Copy link
Contributor

Hi @Lee-W, I would like to assign for this issue, and I'm trying to develop this feature now.

@Lee-W
Copy link
Member

Lee-W commented Mar 30, 2024

sure! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue type: feature A new enhacement proposal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants