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
At Canva we currently use dprint-plugin-exec to run both black and isort over the codebase.
I'm not sure how common this is externally - but I believe it's not uncommon to run both black + isort on a python codebase together - treating isort as a second formatter of sorts.
Ruff supports import sorting - so it would be great if we could leverage this and eliminate one more (slow) integration from the exec plugin.
The text was updated successfully, but these errors were encountered:
I was also thinking about this, but I'm not sure how difficult it would be to implement (haven't looked into it and just going to sleep). Worst case, a pass on the CST could be done before or after formatting that does it.
https://docs.astral.sh/ruff/rules/#isort-i
https://docs.astral.sh/ruff/settings/#isort
At Canva we currently use
dprint-plugin-exec
to run both black and isort over the codebase.I'm not sure how common this is externally - but I believe it's not uncommon to run both black + isort on a python codebase together - treating isort as a second formatter of sorts.
Ruff supports import sorting - so it would be great if we could leverage this and eliminate one more (slow) integration from the exec plugin.
The text was updated successfully, but these errors were encountered: