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

average-father-89924

03/27/2023, 3:15 PM
Hello! In our monorepo we have the following problem when using isort:
pants fmt file.py
runs a different isort than
pants fmt ::
. The latter adds additional line breaks, while the first one removes them. To me both commands should do the same or am I wrong? We also have set up black but this problem is isort specific. isort config from pants.toml:
[isort]
version = "isort==5.11.4"
lockfile = "3rdparty/python/isort.lock"
interpreter_constraints = ["CPython==3.11.2"]
c

curved-television-6568

03/27/2023, 3:36 PM
a

average-father-89924

03/27/2023, 4:28 PM
Yes, definitely that issue. Thanks, Andreas. Should have looked at Github first.
c

curved-television-6568

03/27/2023, 4:52 PM
np. always good to get a feel for how wide-spread an issue is.
2 Views