Funkwhale uses pre-commit to ensure that the files you commit are properly formatted, follow best practice, and don’t contain syntax or spelling errors.
You can install and setup pre-commit using the quick-start guide on the pre-commit documentation. Make sure to install pre-commit and setup the git pre-commit hook so pre-commit runs before you commit any changes to the repository.
The workflow looks like this:
After cloning the repository, setup the pre-commit git hooks:
git clone firstname.lastname@example.org:funkwhale/funkwhale.git cd funkwhale pre-commit install
Make your changes and commit them.
pre-commitfails to validate your changes, the commit process stops. Fix any reported errors and try again.