My personal Advent of Code 2025 implementations
Find a file
2025-12-08 16:20:49 -05:00
inputs Adding Day02 - Part 1 2025-12-08 13:00:57 -05:00
puzzles Removing unused import 2025-12-08 15:32:53 -05:00
tests Minor cleanup 2025-12-08 16:20:49 -05:00
.gitignore Initial commit 2025-12-07 15:33:04 -05:00
.python-version Adding missing .python-version 2025-12-08 15:26:57 -05:00
main.py Removing unused code 2025-12-08 15:31:01 -05:00
pyproject.toml Initial commit 2025-12-07 15:33:04 -05:00
README.md Changing how puzzles are run 2025-12-08 15:26:49 -05:00
uv.lock Initial commit 2025-12-07 15:33:04 -05:00

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