Skip to content

Latest commit

 

History

History
105 lines (91 loc) · 5 KB

README.md

File metadata and controls

105 lines (91 loc) · 5 KB

Code style: black Sourcery
CircleCI codecov

adventofcode

for solutions in rust, refer to rust repo

2015 2016 2017 2018 2019 2020 2021 2022 2023
01 puzzle
puzzle
puzzle
02 puzzle
puzzle
03 puzzle
puzzle
04 puzzle
puzzle
05 puzzle
puzzle
06 puzzle
solutions coming...
07 puzzle
solutions coming...
08 puzzle
solutions coming...
09 puzzle
solutions coming...
10 puzzle
11 puzzle

to run the code

activate the adventofcode virtual environment:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements/base.txt

copy the input of the day inside the file

y_20xy/input_day<day>.txt

you can create a test input file with name

y_20xy/input_day<day>_test.txt

run the command

python -m src --year <year> --day <day>

if you want to run against the test file

python -m src --year <year> --day <day> --test 1

note: to avoid tracking in git your credentials:

git update-index --assume-unchanged secret.py

contributing

install pre-commit

python -m pip install -r requirements/test.txt
pre-commit install