My solutions to Advent of Code 2025 done in Python
When advent begins, get the session cookie from the page and update these:
./.env~/.config/aocd/tokensetup a virtual env and install components
uv venv
uv pip install -r requirements.txt
git-crypt initgit-crypt add-gpg-user sergio@giraldo.com.brset to 0.0.0
set to 0000
clean up the file
remove links from viewer/index.html
cd to root folder
use the run.sh command (see below)
OR
cd to the day
python -m tests --verbose && python -m solution
to make easier, I have this rule for ondir
.ondirrc
enter ~/source/AdventOfCode2025/(.*)
alias pt="python -m tests --verbose"
alias pr="python -m solution"
leave ~/source/AdventOfCode2025/(.*)
unalias pt
unalias pr
Scaffold files to start a new Advent of Code solution and download the puzzle input and puzzle test input.
Default current year and current day
./start [-h] [--year YEAR] [day]
Run tests or solution for a given day, default current day and tests
It always runs in the venv
./run.sh [day] [t|tests|s|solution]
Lint and format markdown files
Lint, options in pyproject.toml
Format, options in pyproject.toml
Lint (using Ruff), format (using Black), create viewer, commit to Github and make PR
Default current day
It should be run in develop branch
./deploy.sh [day]
Run once advent is finished and all solutions done.
It will rerun all tests, download all puzzles, rebuild all viewers, format and lint all files. Then generate a final version.
Generate HTML for viewing the day’s solution
./build-viewer [day]