feat: initial commit

This commit is contained in:
2025-11-30 23:05:29 +01:00
commit 0000000094
18 changed files with 650 additions and 0 deletions

15
conftest.py Normal file
View File

@@ -0,0 +1,15 @@
import re
import pytest
from aoc import input_file
from main import EXAMPLE_BASE
@pytest.fixture
def example_data(request):
match = re.match(r"^.*year_(\d{4})/day_(\d{2})\.py$", str(request.fspath))
assert match is not None
year, day = list(map(int, match.groups()))
return input_file.get(year, day, EXAMPLE_BASE)