modern-manchester-33562
12/04/2023, 1:22 PMisort
but are experiencing issues when doing so. As many before me have reported there seems to be confusion with what packages are 1st and 3rd party. I've tried many of the proposed solutions here and in the issue tracker by e.g. setting src = ["src/*"]
but that seems to not be able to identify all 1st party packages. The only solution that seems to do exactly what is expected is to list all packages manually under:
[tool.ruff.lint.isort]
known-first-party = [
"my_package1",
"my_package2",
"my_packageN",
]
But surely that can't be the solution can it? Is there anything else I've missed that I can try out or is this still an open issue?happy-kitchen-89482
12/04/2023, 3:26 PMhappy-kitchen-89482
12/04/2023, 3:27 PMmodern-manchester-33562
12/04/2023, 3:32 PMhappy-kitchen-89482
12/04/2023, 4:14 PMhappy-kitchen-89482
12/04/2023, 4:57 PMmodern-manchester-33562
12/04/2023, 4:58 PMhappy-kitchen-89482
12/04/2023, 4:58 PMmodern-manchester-33562
12/04/2023, 5:06 PMhappy-kitchen-89482
12/04/2023, 6:36 PMbroad-processor-92400
12/04/2023, 8:14 PMbitter-ability-32190
12/04/2023, 8:16 PMmodern-manchester-33562
12/06/2023, 9:08 PMsrc = ["src/*"]
under [tool.ruff]
and running ruff
outside of Pants would render the expected result. Running it via Pants would still only treat the current target's source files as first party. I'm guessing there is some sandbox "issue" at play here. Is it possible to turn this off during formatting?