Add ruff-specific rules
What does this merge request do and why?
This adds new set of ruff-specific rules that help to ensure more
consistent coding styles. Particularly, RUF022 that ensures all
definitions are ordered according to an "isort-style" sort.
Closes #815 (closed)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Merge request checklist
- I've ran the affected pipeline(s) to validate that nothing is broken.
- Tests added for new functionality. If not, please raise an issue to follow up.
- Documentation added/updated, if needed.
Edited by Tan Le