-
Notifications
You must be signed in to change notification settings - Fork 60
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
Documentation shows incorrect pre-commit configuration when using pyproject.toml #172
Comments
@balazser this is similar to issue #169. In both cases, I see you're using In all of my pre-commits,
I also don't quote the args in |
Actually, now that I look at my
you probably need to add the |
Hi @weibullguy, |
I am trying to use the
docformatter
hook withpre-commit
to format my Python code. However, I am encountering an issue where thedocformatter
hook does not respect the configuration in mypyproject.toml
file when run throughpre-commit
, but it does respect the configuration when run manually withpoetry
.Specifically, I have the following configuration for the
docformatter
hook in my.pre-commit-config.yaml
file:bash
However, when I run
pre-commit run --all-files docformatter
,docformatter
seems to ignore the configuration inpyproject.toml
and uses its default settings instead. On the other hand, when I runpoetry run docformatter .
,docformatter
correctly uses the settings inpyproject.toml
.Can someone explain why this might be happening, and how I can get
docformatter
to respect mypyproject.toml
configuration when run throughpre-commit
?Thank you.
The text was updated successfully, but these errors were encountered: