My personal Advent of Code 2025 implementations
| inputs | ||
| puzzles | ||
| tests | ||
| .gitignore | ||
| .python-version | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Overview
My solutions for Advent of Code
Hopefully I keep up with it
Installation
git clone <repo>
cd advent-of-code-2025
uv sync
Testing/Verifying Solutions
Each day will include a pytest script that uses examples from the day.
This allows for verifying the code works by running pytest. For example:
Note: --durations=0 shows the slowest tests (if taking longer then 0.005s). This is great for testing differences between changes.
|--% uv run pytest -v --durations=0 tests/test_day01.py
================================================================================ test session starts ======================================
platform linux -- Python 3.14.0, pytest-9.0.2, pluggy-1.6.0 -- advent-of-code-2025/.venv/bin/python
cachedir: .pytest_cache
rootdir: advent-of-code-2025
configfile: pyproject.toml
collected 4 items
tests/test_day01.py::test_example1 PASSED [ 25%]
tests/test_day01.py::test_example2 PASSED [ 50%]
tests/test_day01.py::test_part1 PASSED [ 75%]
tests/test_day01.py::test_part2 PASSED [100%]
================================================================================= slowest durations =======================================
(12 durations < 0.005s hidden. Use -vv to show these durations.)
================================================================================= 4 passed in 0.01s =======================================
Running Each Day Manually
|--% uv run main.py day02 example
-- Solving for day02 [Example] --
Part 1 Result: 1227775554
Part 2 Result: 4174379265
|--% uv run main.py day02
-- Solving for day02 --
Part 1 Result: 40214376723
Part 2 Result: 50793864718