jku / repository-playground

Community artifact repository workflow experiments
Other
7 stars 4 forks source link

lint: Enable import sorting #140

Closed jku closed 1 year ago

jku commented 1 year ago

ruff can do import sorting but it does not seem to be enabled by default

This in pyproject.toml might help (and then running ruff with --fix to sort everything) :

[tool.ruff]
# pycodestyle (`E`) and Pyflakes (`F`) are enabled by default.
# Also enable isort (`I`).
select = ["E", "F", "I"]

as a bonus we could consider enabling other rulesets as well: https://beta.ruff.rs/docs/rules/