Code Cleanliness

Ruff

For internal consistency in the group, all publicly accessible Python code (and codes we work on collaboratively) should be formatted with  ruff . Ruff is by no means a "perfect" formatter (which is largely a matter of preference). However, there are few things more frustrating in scientific computing than dealing with formatting inconsistencies when you're just trying to get things done. Ruff is fast, uncompromising, and "just works."
To format your code with Ruff, make sure it is installed (e.g. pip install ruff). To format code from the command line, run ruff format in the directory of files you want to format. Use ruff check --fix to apply common lint fixes. VS Code will also do this automatically on-save if you have the  Ruff  extension installed (highly recommended).