Solutions to Advent of Code 2019.
You'll need to install pipenv to run the code.
To activate the git hooks:
git config core.hooksPath .githooks
If you want to use the init and instructions scripts, you should set the AOC_SESSION_TOKEN
environment variable to the session token in your adventofcode.com cookie.
Though not required, it's handy to use direnv to set your session token and add the scripts in bin
to your PATH
so you can run them directly, eg: tests
.
To do so, add an .envrc
file to the project root:
export PATH=./bin:$PATH
export AOC_SESSION_TOKEN="your session token"
The bin/init
script will automatically create an .envrc
within each solution.
# Run and verify all solutions
bin/solutions
# Run all unit tests with coverage
bin/tests
# Lint project code
bin/lint
# Initialize solution for first day
bin/init day1