let's see if I stay motivated till the end
Trying out to practice testing more so.. here it's going to be all test first!
For each day run:
# testing day 1 on test data (from site)
pytest 2021/01.py
# running day 1 on day 1 data
python 2021/01/py
First time.. setting things up with black and flake8 for formatting and pre-commit for fixing things before they getting committed to git.
Requirements:
- python 3.12.0
make setup # to setup venv and install stuff
Setting up pre-commit (it uses the .pre-commit-config.yaml which specify rules for black and flake8 and flake8 uses .flake8 which has line length rules set so it doesn't clash with black)
pre-commit
After logging in to adventofcode on firefox or chrome get the token, see how to and add the export to your profile (you need to update when token expires.. after a year basically)
export AOC_SESSION=cafef00db01dfaceba5eba11deadbeef```