lektor-atom icon indicating copy to clipboard operation
lektor-atom copied to clipboard

WIP: chore(repo): Update lint tools to what lektor uses

Open do3cc opened this issue 10 months ago • 3 comments

Still work in progress. Commits will be rebased!

do3cc avatar Mar 05 '25 14:03 do3cc

No functional code changes. Apart from black changing everything left and right, I changed minor things in test code to make pylint happy. I noticed Contributing docs is not complete, and I believe that setup.cfg and pyproject.toml could be unified, so I will try this later. I only opened the PR as a draft to make anybody aware that a PR will come.

do3cc avatar Mar 05 '25 14:03 do3cc

There is some motivation to replace the use of black, flake8, reorder-python-imports, and pyupgrade with ruff (lektor/lektor#1209). I'm not exactly sure how soon that may happen. (I am swamped and not working on Lektor, atm.)

Anyway, there's really no reason that lektor-atom need use exactly the same tools as lektor. And the use of ruff in place of the others is mostly compatible, anyway.

If you're going to go through this work now, it might be worth switching directly to ruff.

dairiki avatar Mar 05 '25 17:03 dairiki

Thank you, that information was the reason I created the draft PR. I've updated to ruff, but in the next days I want to be sure everything works with both pip and uv.

do3cc avatar Mar 05 '25 23:03 do3cc