This PR enables a bunch more ruff rules. They have quite a long list of various rules, so I picked some of the more low-hanging fruit here.
Some of the fixes are arguably mostly stylistic (e.g. isort might help when merging, but doesn't do much else), but some of them might improve performance (Perflint, flake8-comprehensions), even if only slightly.
This PR enables a bunch more ruff rules. They have quite a long list of various rules, so I picked some of the more low-hanging fruit here.
Some of the fixes are arguably mostly stylistic (e.g.
isort
might help when merging, but doesn't do much else), but some of them might improve performance (Perflint
,flake8-comprehensions
), even if only slightly.