adventofcode 25.11__tar.gz → 25.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ repos:
10
10
  - id: check-added-large-files
11
11
  - repo: https://github.com/astral-sh/ruff-pre-commit
12
12
  # Ruff version.
13
- rev: v0.14.7
13
+ rev: v0.14.8
14
14
  hooks:
15
15
  - id: ruff
16
16
  - id: ruff-format
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Calendar Versioning](https://calver.org).
7
7
 
8
+ ## [25.12]
9
+
10
+ ### Fixed
11
+
12
+ * Fixed running last day with no part 2.
13
+
8
14
  ## [25.11]
9
15
 
10
16
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adventofcode
3
- Version: 25.11
3
+ Version: 25.12
4
4
  Summary: Helper utilities for solving Advent of Code puzzles
5
5
  Project-URL: Documentation, https://github.com/anze3db/adventofcode#readme
6
6
  Project-URL: Issues, https://github.com/anze3db/adventofcode/issues
@@ -0,0 +1 @@
1
+ __version__ = "25.12"
@@ -613,10 +613,11 @@ def run(filepath: Path, benchmark: bool = False) -> None: # noqa: FBT001, FBT00
613
613
  match = re.match(r"(\d\d)", filepath.stem)
614
614
  if not match:
615
615
  return
616
+ day = int(match.group(1))
616
617
  aoc = AoC(
617
618
  part_1=module.part1,
618
619
  part_2=module.part2,
619
- day=int(match.group(1)),
620
+ day=day,
620
621
  year=AOC_YEAR,
621
622
  )
622
623
  if hasattr(module, "part1_asserts"):
@@ -629,6 +630,9 @@ def run(filepath: Path, benchmark: bool = False) -> None: # noqa: FBT001, FBT00
629
630
  aoc.submit_p1_benchmark()
630
631
  else:
631
632
  aoc.submit_p1()
633
+ if (AOC_YEAR < 2025 and day == 25) or (AOC_YEAR >= 2025 and day == 12):
634
+ console.log("[green]No part 2 for Day 25 ⭐[/green]\n")
635
+ return
632
636
  if hasattr(module, "part2_asserts"):
633
637
  for test_input, expected in module.part2_asserts:
634
638
  aoc.assert_p2(test_input, expected)
@@ -1 +0,0 @@
1
- __version__ = "25.11"
File without changes
File without changes
File without changes