Skip to content

Advent of Code 2019 solutions in python3

Notifications You must be signed in to change notification settings

kirkedev/aoc2019

Repository files navigation

Advent of Code 2019

Build Status Coverage Status Python 3.8

Solutions to Advent of Code 2019.

Setup

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.

Commands

# 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

About

Advent of Code 2019 solutions in python3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published