ran into an issue with pants lint with ruff (python). it kept on re-sorting my local imports as global ones. i inspected the sandbox and it seems my local files that are being arent there so ruff thinks they global instead of local
h
happy-kitchen-89482
04/19/2024, 1:39 AM
Ugh, this was an annoying known issue with isort that apparently persists with rust.
happy-kitchen-89482
04/19/2024, 1:40 AM
I think the most robust solution is to configure isort/ruff to know that specific top-level packages are first-party, instead of relying on this being inferred from the presence of files.
✅ 1
happy-kitchen-89482
04/19/2024, 1:40 AM
I assume by "local" vs "global" you mean "first party" vs "third party"?
b
bland-megabyte-12121
04/19/2024, 1:42 AM
yes local = a local file, global = 3rd party package