Add a pre-commit hook
Moving my local hooks into a pre-commit hook set that others can find useful too:
- remove trailing whitespaces and newlines
- don't allow commits to the "main" branch
- python black and python ruff (same args as in the CI)
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Moving my local hooks into a pre-commit hook set that others can find useful too: