ktmeaton / advent-of-code-2020

Advent of Code 2020

Home Page:https://ktmeaton.github.io/advent-of-code-2020/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸŽ… Advent Of Code 2020 πŸŽ„

Katherine Eaton's page for the Advent of Code 2020 Challenge.

Gitpod ready-to-code codecov License: MIT

Install

Pip

git clone https://github.com/ktmeaton/advent-of-code-2020.git
cd advent-of-code-2020/
pip install .[dev]

Gitpod

Start up a Gitpod workspace:

Gitpod ready-to-code

Usage

Run as a script:

advent_of_code_2020/advent_of_code_2020.py

Run as a module:

from advent_of_code_2020.advent_of_code_2020 import AdventOfCode2020
advent = AdventOfCode2020()
advent.day01(input="input/day01.txt", output="output/day01.log")

Check the output for a particular day:

cat output/day01.log

Answers

Implementation

Testing

python -m coverage run -m pytest --cov=advent_of_code_2020 --cov-report=xml test/test_advent.py

About

Advent of Code 2020

https://ktmeaton.github.io/advent-of-code-2020/

License:MIT License


Languages

Language:Python 99.2%Language:Dockerfile 0.8%