https://pantsbuild.org/ logo
#general
Title
# general
b

big-xylophone-43403

06/09/2021, 8:42 PM
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

hundreds-father-404

06/09/2021, 8:45 PM
What pants version are you using? That impacts if pants auto discovers config files or not
b

big-xylophone-43403

06/09/2021, 8:47 PM
I tried with both
2.3.0
and
2.4.0
h

hundreds-father-404

06/09/2021, 8:50 PM
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

big-xylophone-43403

06/09/2021, 8:50 PM
ah, got it. Thanks Eric.
❤️ 1
h

hundreds-father-404

06/09/2021, 8:50 PM
For isort, the default works with pyproject toml: https://www.pantsbuild.org/v2.3/docs/reference-isort#section-version