You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I think that pants is sometimes ignoring our pyproject.toml file, specifically tool.isort.known_first_party.
Pants version
$ ./pants version
2.8.0
OS
MacOS
Additional info
When running fmt across he whole repo, I have to use xargs to chunk the files due to #13462. When I do that, pants seems to ignore our config and reformat imports which are in known_first_party. My coworker on Linux, which has a higher MAX_ARGS and therefore does not need xargs does not see this problem.
$ ./pants list src/:: --list-sep="\0" | xargs -n1000 -0 ./pants fmt
<snip>
Fixing src/util/tests/test_tee.py
Fixing src/util/tests/test_tokens.py
Fixing src/util/testutil.py
Fixing src/util/text_mailer.py
Fixing src/util/usps.py
+ Black made changes.
+ isort made changes.
+ shfmt made changes.
(there should be no changes to isort, black and shfmt expected)
However, when I run ./pants fmt directly on the targets in question it works fine:
$ ./pants fmt src/util/
15:47:58.83 [INFO] Completed: Format with Black - Black made no changes.
All done! ✨ 🍰 ✨
66 files left unchanged.
15:47:59.62 [INFO] Completed: Format with isort - isort made no changes.
✓ Black made no changes.
✓ isort made no changes.
It seems that all (or almost all) the changes I find are modules listed in known_first_party being shuffled.
The text was updated successfully, but these errors were encountered:
Describe the bug
I think that pants is sometimes ignoring our pyproject.toml file, specifically tool.isort.known_first_party.
Pants version
OS
MacOS
Additional info
When running fmt across he whole repo, I have to use xargs to chunk the files due to #13462. When I do that, pants seems to ignore our config and reformat imports which are in
known_first_party
. My coworker on Linux, which has a higher MAX_ARGS and therefore does not need xargs does not see this problem.(there should be no changes to isort, black and shfmt expected)
However, when I run
./pants fmt
directly on the targets in question it works fine:It seems that all (or almost all) the changes I find are modules listed in known_first_party being shuffled.
The text was updated successfully, but these errors were encountered: