Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Pass config file to black, if present #63

@dcode

Description

@dcode

This is similar to #9, but if additional black settings are configured in pyproject.toml beyond the include/exclude directives, it would be nice to have pytest-black honor those. I think this is as simple as adding --config pyproject.toml to the command argv in runtest(). This fixes my issues with line length discrepancy between config and test.

I can submit a PR to address it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions