diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml index 9ef6d31..8196029 100644 --- a/.github/workflows/ruff.yaml +++ b/.github/workflows/ruff.yaml @@ -15,7 +15,7 @@ jobs: pip install . - name: Format run: | - ruff format . + ruff format . --check - name: Lint run: | ruff check . \ No newline at end of file diff --git a/.replit b/.replit new file mode 100644 index 0000000..35de35d --- /dev/null +++ b/.replit @@ -0,0 +1 @@ +modules = ["python-3.11"] diff --git a/aoc.py b/aoc.py index fc93df1..41db9b9 100644 --- a/aoc.py +++ b/aoc.py @@ -51,7 +51,9 @@ def run_puzzle(year: int, day: int, part: int, aoc_session_cookie: str) -> None: if not os.path.isfile(input_path): cookies = {"session": aoc_session_cookie} r = requests.get( - f"https://adventofcode.com/{year}/day/{day}/input", cookies=cookies, headers=HEADERS + f"https://adventofcode.com/{year}/day/{day}/input", + cookies=cookies, + headers=HEADERS, ) r.raise_for_status() input = r.text