Setup instructions coming soon.
- Homebrew must be installed: Install Homebrew
- UV must be installed:
Runbrew install uvto install uv
- Run
uv venvto create a venv called .venv - Run
source .venv/bin/activateto activate the new .venv - Run
uv pip install -e .to install all dependencies via uv - Run
uv run pre-commit installto install pre-commits locally
And now you are ready to use this repo
- Activate your virtual environment:
source .venv/bin/activateYou can run your code in several ways:
-
From the project root:
uv run python advent_of_code/src/2024/Day1/main.py
-
From a specific day directory:
cd advent_of_code/src/2024/Day1 uv run python main.py -
Debug directly in VS Code or your IDE: Open
main.pyand use the debugger.
To display your own Advent of Code badges:
- Open
.github/workflows/badges.ymlin this repository. - Find and use your own user ID for badge generation.
- For more details, see the aoc-badges-action documentation.