Closed benjaminrwilson closed 3 years ago
Removed .isort.cfg
since pyproject.toml
contains the configuration now.
Hi Ben, does the .toml file change our pre-commit config, or our Tox configuration?
None of that should change with this commit. pre-commit
doesn't have support (although, it's widely requested) and tox
is still defined in a separate file. I suggest nox
support in a separate PR.
isort states that .isort.cfg or pyproject.toml are both supported: https://pycqa.github.io/isort/docs/configuration/options/
Overview
This PR adds a
pyproject.toml
file to consolidate styling tools such asisort
andblack
.pyproject.toml
was introduced in PEP 518 for build system requirements.isort
,black
, etc.Each "block" within this file specifies a different type of options. For example,
isort
is written as:The options above should have a 1-to-1 correspondence with
isort.cfg
.Advantages