This guide describes how to complete various tasks you'll encounter when working on the Bayes3D codebase.
We use pre-commit to manage a series of git pre-commit hooks for the project; for example, each time you commit code, the hooks will make sure that your python is formatted properly. If your code isn't, the hook will format it, so when you try to commit the second time you'll get past the hook.
All hooks are defined in .pre-commit-config.yaml
. To install these hooks,
install pre-commit
if you don't yet have it. I prefer using
pipx so that pre-commit
stays globally
available.
pipx install pre-commit
Then install the hooks with this command:
pre-commit install
Now they'll run on every commit. If you want to run them manually, run the following command:
pre-commit run --all-files