-
-
Notifications
You must be signed in to change notification settings - Fork 685
Open
Labels
Description
Describe the bug
When running isort on a single source file, the result is not always consistent compared to when running on all sources.
Pants version
2.11.0rc1, 2.12.0.dev1
OS
Mac
Additional info
Test case demonstrating this issue in #15002
It seems there are cases even in fmt that requires transitive deps to be present, not only for check.
See related comment: #14186 (comment)
I've run across this a couple of times now at work, where I have a pre-commit hook that runs on a subset of files (exactly the subset of changed files only), and fails, where as when I run by hand I usually use globs like a hammer and includes a whole lot more, which exposes this issue, due to isort not being stable for the two ways it is being invoked.
charlietsai, huonw, senickel, rhuanbarreto and avilaton