docformatter icon indicating copy to clipboard operation
docformatter copied to clipboard

docformatter omits pyproject.toml configuration when has no extra dependencies installed

Open kfot opened this issue 1 year ago • 0 comments

I have a pyproject.toml file containing some entries for black, ruff and docformatter. When I install the latest docformatter in a clean environment it does not read the configuration from the config file, simply omits it even if it's explicitly specified. The other formatters have no issue reading the same file.

My pyproject toml:

[tool.docformatter]
black = true
recursive = true
in-place = true
wrap-summaries = 120
wrap-descriptions = 120

I believe the behavior is exactly the same as in this old issue.

Issue is present in docformatter version 1.7.5, tested on multiple Python versions with the same results.

kfot avatar Oct 26 '23 10:10 kfot