Published 2020-05-09T15:54:00.002Z by Physics Derivation Graph
There are a few recurring tasks:
Each of these tasks take time, so including all of them as git commit hooks induces undesirable latency.
Currently .git/hooks/pre-commit contains
docker run --rm -v`pwd`:/scratch --entrypoint='' -w /scratch/ flask_ub make black
I don't want to run mypy and sphinx every time because that would take a lot of my time.
I could run these two every tenth commit.
To get a command to run every tenth commit, I could leverage the date and run a command if the date is modulo 10.