The pre-commit framework is used to ensure consistency . It is configured via .pre-commit-config.yaml to run the checks prior to allowing a git commit to continue.
On MacOSX install the pre-commit package
brew install pre-commit
For other operating systems check the official documentation
Install the pre-commit hook
pre-commit install
After pre-commit hook has been installed you can run it manually on all files in the repository to confirm that it works
pre-commit run -a