isort
can be configured using several configuration files,
of which .isort.cfg
and pyproject.toml
are preferred, according to isort
’s documentation.
These are both recognised by mllint, although we recommend centralising tool configurations in your project’s pyproject.toml
Since mllint also recommends using Black, you should configure isort
to be compatible with Black.
This is done by putting the following in your pyproject.toml
[tool.isort]
profile = "black"
Links to isort
s documentation: