Skip to content

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

@kfot

Description

@kfot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: stakeholderRelates to docformatter stakeholder requested behaviorP: bugPEP 257 violation or existing functionality that doesn't work as documentedU: mediumA relatively medium urgency issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions