Skip to content

honeysabu/aoc23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adventofcode - template repository

Update the readme to your needs

How it works (2023)

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 2023/01.py

# running day 1 on day 1 data

python 2023/py

Setup

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

Getting the AOCD work

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)

You can run this in your terminal

export AOC_SESSION=cafef00db01dfaceba5eba11deadbeef```

How to use this

For each day copy the 00.py, rename it and change that it gets data for that day, and the tests expect the value in the challenges.

If your code works then running

pytest 2023

should return all tests passed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published