classy-python / ccbv

A documentation tool for getting your head around Django's class based views.
https://ccbv.co.uk/
BSD 2-Clause "Simplified" License
521 stars 68 forks source link

Switch to ruff #236

Closed ghickman closed 5 months ago

ghickman commented 5 months ago

This swaps out flake8 and isort for ruff. I've enabled a few rulesets that I tend to use everywhere. We might want to add more? There are a couple of commits after the swap, fixing errors brought up by it, all in the pyupgrade family.

One oddity I noticed was that the dev tooling, such as black/flake8/etc., is not installed outside of pre-commit, so to test these changes, I had to install ruff manually.