ran into an issue with pants lint with ruff (pytho...
# general
b
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
Ugh, this was an annoying known issue with isort that apparently persists with rust.
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
I assume by "local" vs "global" you mean "first party" vs "third party"?
b
yes local = a local file, global = 3rd party package