Code for my Write a Compiler blog series.
Basic setup:
$ python3 -m virtualenv .venv
$ source .venv/bin/activate
$ pip3 install -r requirements.txt
Install extra developer dependencies:
$ pip3 install -r dev-requirements.txt
Run all tests:
$ make test
The pre-commit
file is designed to be ran before each git commit. It is not
enabled by default (for security reasons), so to enable it, run the following:
$ ln -sf $PWD/pre-commit .git/hooks/pre-commit