Sort imports

This commit is contained in:
Nettika
2023-12-09 18:05:48 -08:00
parent bf3c2143d3
commit 5a938d3f44
4 changed files with 7 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
from puzzle import solve_pt_1, solve_pt_2
from pathlib import Path
from puzzle import solve_pt_1, solve_pt_2
def main():
input = (

View File

@@ -1,9 +1,5 @@
from puzzle import (
pt_1_first_digit_pattern,
pt_1_last_digit_pattern,
solve_pt_1,
solve_pt_2,
)
from puzzle import (pt_1_first_digit_pattern, pt_1_last_digit_pattern,
solve_pt_1, solve_pt_2)
def test_solve_pt_1():

View File

@@ -1,6 +1,7 @@
from __future__ import annotations
from dataclasses import dataclass
import re
from dataclasses import dataclass
game_id_pattern = re.compile(r"^Game (\d+)$")
draw_yield_description_pattern = re.compile(r"(\d+) (\w+)")

View File

@@ -1,5 +1,5 @@
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 = [
"Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green",