peterjc / thapbi-pict

Tree Health and Plant Biosecurity Initiative - Phytophthora ITS1 Classifier Tool
https://thapbi-pict.readthedocs.io/
MIT License
8 stars 2 forks source link

Replace black with ruff format command #575

Closed peterjc closed 9 months ago

peterjc commented 9 months ago

Ruff is already a partial replacement for flake8 (does not have quite the same plugin coverage, but much faster), but is now also a faster replacement for black - see https://astral.sh/blog/the-ruff-formatter

For now I've left the flake8 setup in place, but could perhaps trim down its plugin list as many issues will already have been checked by the ruff linter, or ultimately drop it?

peterjc commented 9 months ago

Note would need to explicitly enable the ruff implementations of flake8-plugins or similar like pyupgrade