This directory contains useful git hooks for developing in the repo on Linux and Mac systems. Copy the scripts in this directory to your git hooks directory (likely wcEcoli/.git/hooks/). Ensure that the hooks have execution permissions.
From the wcEcoli/ directory, run the following command to copy the scripts:
cp runscripts/git_hooks/*[^.md] .git/hooks/
post-checkout: Runs when performinggit checkoutto a different branchpost-merge: Runs when merging commits
wcm-env-check.sh: Called bypost-checkoutandpost-mergeto ensure an up to date environment for development. Does the following:- Remove any
*.pycfiles to prevent python executing these even if the corresponding*.pyfile has been removed. make compile: ensure compiled code is up to date if changed- Show difference between packages in
requirements.txtand those that are pip installed. Try pip installing missing or out of date packages if any are displayed.
- Remove any