Skip to content

[docs request] Examples of pyproject.toml and setup.cfg #100

@vaughnkoch

Description

@vaughnkoch

Hi, it would be nice to have a few examples in the readme of workingpyproject.toml and setup.cfg files.

In particular, for pyproject.toml, it was not obvious that you have to use [tool.blue] instead of [blue], [tool.black], etc. However, for setup.cfg, you need to use [blue].

This basic pyproject.toml works for me:

[tool.blue]
line-length = 88
target-version = ['py37', 'py38']
include = '\.pyi?$'
color = true
extend-exclude = '''

This basic setup.cfg seems to work as well:

[blue]
line-length = 88
color = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions