Flakehell ignores additional setup.cfg parameter for darglint

348 views Asked by At

I'm using Flakehell to lint my python project. I installed and activated darglint for flakehell. Then I want to set my docstring style to numpy. First, I added docstring_style = "numpy" to tool.flakehell section in my pyproject.toml. Additionally, I set docstring_style = numpy in setup.cfg (used by darglint). When running darglint in terminal everything works fine, but using flakehell it does not detect my additional setting and gives me linting errors containing wrong docstrings...

My pyproject.toml:

[tool.flakehell]
docstring_style = "numpy"

[tool.flakehell.plugins]
flake8-darglint = ["+*"]

setup.cfg:

[darglint]
docstring_style = numpy

Why does flakehell ignores darglint setting? How to set this option via flakehell? Thanks for any help/suggestions!

1

There are 1 answers

2
anthony sottile On

according to the darglint documentation you'd specify the darglint settings in their configuration section:

[darglint]
docstring_style = numpy