dcwatson / deflate

Python extension wrapper for libdeflate.
MIT License
25 stars 6 forks source link

chore: use ruff #46

Closed henryiii closed 4 months ago

henryiii commented 4 months ago

This gets rid of the setup.cfg file by using ruff, which can replace black, flake8, and isort (along with a lot of other things), and is faster. See https://learn.scientific-python.org/development/guides/style/#ruff.

henryiii commented 4 months ago

(Due to the fact you are using a makefile instead of a proper Python task runner like nox, hatch, tox, etc, you'll need to install ruff locally before running it, just like you had to do with the individual tools. It's just a single pip-installable Rust binary (no dependencies), so it is much easier to handle than the other separate tools with dependencies, Python version dependence, etc)

dcwatson commented 4 months ago

Thanks, I've been using ruff a while on its own, and more recently via rye. I just hadn't gotten around to modernizing this project - I do appreciate the nudge 😁