File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ __pycache__/
1212.idea /
1313.cursor /
1414
15- * .DS_Store /
16- * uv.lock
15+ .DS_Store
16+ uv.lock
1717
18- * .envrc
18+ .envrc
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ def add_day(year: int, day: int) -> None:
114114 sample_file = path / "templates/solutions/sample.py"
115115 content = sample_file .read_text ()
116116
117+ solution_path .parent .mkdir (parents = True , exist_ok = True )
117118 solution_path .write_text (content )
118119 logger .info (f"Created file: { solution_path } " )
119120
@@ -229,5 +230,6 @@ def add_test_file(year: int, day: int) -> None:
229230 content = sample_file .read_text ().format (year = year , day = day )
230231
231232 # Write the formatted content
233+ test_path .parent .mkdir (parents = True , exist_ok = True )
232234 test_path .write_text (content )
233235 logger .info (f"Created file: { test_path } " )
You can’t perform that action at this time.
0 commit comments