Skip to content

Commit bbb9ff2

Browse files
committed
Switch to using uv
1 parent 42305a3 commit bbb9ff2

5 files changed

Lines changed: 693 additions & 14 deletions

File tree

2024/day06.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def walk(grid):
5959
visited.add(current)
6060
# visualize(obstacles, current, heading)
6161
if next_step(current, heading) in obstacles:
62-
print("turning")
62+
# print("turning")
6363
heading = turn_right(heading)
6464
nxt = next_step(current, heading)
6565
# print(current, nxt, heading, visited)
@@ -78,7 +78,7 @@ def visit(map):
7878

7979

8080
def main(part: int = 1) -> int:
81-
with open("2024/data/day05.txt") as f:
81+
with open("2024/data/day06.txt") as f:
8282
map = f.read()
8383
return visit(map)
8484

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Install Python Dependencies
88
install:
9-
pip install -r requirements.txt
9+
uv sync --dev
1010
pre-commit install
1111

1212
## Run pre-commit on all files

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,17 @@ exclude = '''
4848

4949
[tool.mypy]
5050
python_version = '3.10'
51+
52+
[dependency-groups]
53+
dev = [
54+
"black>=25.11.0",
55+
"flake8>=7.3.0",
56+
"flake8-bugbear>=25.11.29",
57+
"flake8-isort>=7.0.0",
58+
"isort>=7.0.0",
59+
"mypy>=1.19.0",
60+
"nox>=2025.11.12",
61+
"pre-commit>=4.5.0",
62+
"pytest>=9.0.1",
63+
"pytest-timeout>=2.4.0",
64+
]

requirements.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)