Setting up a new BitBucket Repository
Git Hooks?
See example in rr_validation
Git hooks are set up on a per module basis.
We have a pre-commit hook in rr_validation which runs flake8 across the code; if the code requires changes, then the module cannot be committed.
The D100-D104 error seem to be invoked against public modules. We don't have control or should be changing these. The script makes flake8 ignore these errors.
The script resides in rr_validation/git_hooks. To install, cd to this folder and run install.bat.
Once installed, do a commit. It will flag up any errors. Fix the errors, run the "git add ."Â and re-commit.