From 4f7424b533ca3becc7c1cafe97ca70d0221fa522 Mon Sep 17 00:00:00 2001 From: Nettika Date: Mon, 18 Dec 2023 20:29:25 -0800 Subject: [PATCH] Format imports --- 05/puzzle_test.py | 9 +++++++-- advent_of_code/gears.py | 4 ++-- tests/gears_test.py | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/05/puzzle_test.py b/05/puzzle_test.py index 835dc5f..785d4d6 100644 --- a/05/puzzle_test.py +++ b/05/puzzle_test.py @@ -1,5 +1,10 @@ -from puzzle import (RangeConversion, resolve_destination, resolve_source, - solve_pt_1, solve_pt_2) +from puzzle import ( + RangeConversion, + resolve_destination, + resolve_source, + solve_pt_1, + solve_pt_2, +) mock_seeds = [79, 14, 55, 13] mock_destinations = [81, 14, 57, 13] diff --git a/advent_of_code/gears.py b/advent_of_code/gears.py index 58f8550..917cbb8 100644 --- a/advent_of_code/gears.py +++ b/advent_of_code/gears.py @@ -1,11 +1,11 @@ "Day 3: Gear Ratios" from __future__ import annotations -from collections import UserDict +import math +from collections import UserDict from dataclasses import dataclass from functools import reduce -import math from typing import NamedTuple diff --git a/tests/gears_test.py b/tests/gears_test.py index c32cca2..09a73c0 100644 --- a/tests/gears_test.py +++ b/tests/gears_test.py @@ -1,7 +1,7 @@ from advent_of_code.gears import ( + Number, Part, Schematic, - Number, Symbol, solve_part_1, solve_part_2,