Sort imports
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from puzzle import solve_pt_1, solve_pt_2
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
from puzzle import solve_pt_1, solve_pt_2
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
input = (
|
input = (
|
||||||
|
@@ -1,9 +1,5 @@
|
|||||||
from puzzle import (
|
from puzzle import (pt_1_first_digit_pattern, pt_1_last_digit_pattern,
|
||||||
pt_1_first_digit_pattern,
|
solve_pt_1, solve_pt_2)
|
||||||
pt_1_last_digit_pattern,
|
|
||||||
solve_pt_1,
|
|
||||||
solve_pt_2,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def test_solve_pt_1():
|
def test_solve_pt_1():
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from dataclasses import dataclass
|
|
||||||
import re
|
import re
|
||||||
|
from dataclasses import dataclass
|
||||||
|
|
||||||
game_id_pattern = re.compile(r"^Game (\d+)$")
|
game_id_pattern = re.compile(r"^Game (\d+)$")
|
||||||
draw_yield_description_pattern = re.compile(r"(\d+) (\w+)")
|
draw_yield_description_pattern = re.compile(r"(\d+) (\w+)")
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
from game import Game
|
from game import Game
|
||||||
from puzzle import solve_pt_1, solve_pt_2, _configuration_power
|
from puzzle import _configuration_power, solve_pt_1, solve_pt_2
|
||||||
|
|
||||||
mock_input = [
|
mock_input = [
|
||||||
"Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green",
|
"Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green",
|
||||||
|
Reference in New Issue
Block a user