Hi, I have a fmt/lint issue. Pants seems to ignore...
# general
b
Hi, I have a fmt/lint issue. Pants seems to ignore the isort
black
profile. Whether its in
.isort.cfg
or
pyproject.toml
. Also, what version of Pants support the
pyproject.toml
config for both the tools?
h
What pants version are you using? That impacts if pants auto discovers config files or not
b
I tried with both
2.3.0
and
2.4.0
h
Pants 2.5 is the first to do auto discovery. (Ack you are blocked from upgrading). In the meantime, set the options [black].config and [isort].config https://www.pantsbuild.org/v2.3/docs/python-linters-and-formatters#configuring-the-tools-and-adding-plugins
b
ah, got it. Thanks Eric.
❤️ 1
h
For isort, the default works with pyproject toml: https://www.pantsbuild.org/v2.3/docs/reference-isort#section-version