Skip to content

Commit

Permalink
Fix ruff format not returning error in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacerulerwill committed Jan 10, 2025
1 parent b5a5f08 commit d6ce9d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
pip install .
- name: Format
run: |
ruff format .
ruff format . --check
- name: Lint
run: |
ruff check .
1 change: 1 addition & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
modules = ["python-3.11"]
4 changes: 3 additions & 1 deletion aoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6ce9d3

Please sign in to comment.