You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Run with the module flag (if you have the package importable):
24
+
25
+
```
26
+
python -m advent_of_code --year 2025 --day 1
27
+
```
28
+
29
+
- Install editable and use the console script (recommended for convenience):
30
+
31
+
```
32
+
pip install -e .
33
+
aoc --year 2025 --day 1
34
+
```
35
+
36
+
Notes on invocation
37
+
38
+
- The CLI expects `--year` and `--day`. The `--day` value accepts either `1` or `01` — the code zero-pads the value to match input filenames.
39
+
- Input files live under `inputs/year_<YYYY>/<NN>.dat` where `<NN>` is zero-padded to two digits (e.g. `01.dat`).
40
+
- Each day module under `src/advent_of_code/year_<YYYY>/day_<NN>.py` should expose a `main(input_file)` function which the CLI calls.
41
+
- If you see "Could not find module" when running the CLI, either install the package (`pip install -e .`) or run with `PYTHONPATH=src` as shown above.
42
+
43
+
Dependencies and `uv`
44
+
45
+
- Project dependencies are listed in `pyproject.toml` and `requirements.txt`.
46
+
- This repository includes `uv` (version pinned in `requirements.txt` / `pyproject.toml`) as a dependency. Installing the project (or the requirements) will pull `uv` in. The core day-runner CLI (`aoc` / `python -m advent_of_code`) does not require `uv` to run a solution file, but `uv` is available for any tooling or extensions that may use it.
47
+
48
+
Installing dependencies
49
+
50
+
```
51
+
pip install -r requirements.txt
52
+
# or for editable install (recommended if you want the `aoc` console script):
53
+
pip install -e .
54
+
```
55
+
56
+
Scripts
57
+
58
+
-`scripts/run_day.py` — a small script that mirrors the CLI behavior but can be invoked directly with Python.
59
+
-`scripts/run_all_solutions.py` — discovers and runs available day solutions (skips days without an input file).
60
+
61
+
### 2025 Progress
62
+
63
+
| Day | Part 1 | Part 2 |
64
+
| :---: | :------: | :------: |
65
+
| 01 | ⭐️ | ⭐️ |
66
+
| 02 | ⭐️ | ⭐️ |
67
+
| 03 | ⭐️ | ⭐️ |
68
+
69
+
### 2024 Progress
70
+
71
+
| Day | Part 1 | Part 2 |
72
+
| :---: | :------: | :------: |
73
+
| 01 | ⭐️ | ⭐️ |
74
+
| 02 | ⭐️ | ⭐️ |
75
+
| 03 | ⭐️ | ⭐️ |
76
+
10
77
### 2023 Progress
11
78
12
79
| Day | Part 1 | Part 2 |
@@ -16,5 +83,4 @@ docker run advent-of-code-python-app
0 commit comments