From ffdc98b7b98522b72894e820a02832eb795107e4 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 8 Dec 2022 17:44:42 +0100 Subject: [PATCH] Fix pre-commit --- 2022/day04_camp_cleanup.py | 4 ++-- 2022/inputs/day04 | 2 +- 2022/inputs/day04-test1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/2022/day04_camp_cleanup.py b/2022/day04_camp_cleanup.py index ce401fd..3a43bc6 100644 --- a/2022/day04_camp_cleanup.py +++ b/2022/day04_camp_cleanup.py @@ -24,9 +24,9 @@ def parse_data(data: list[str]) -> DataType: for line in data: first, second = line.split(",") first_1, first_2 = first.split("-") - first = set(range(int(first_1), int(first_2)+1)) + first = set(range(int(first_1), int(first_2) + 1)) second_1, second_2 = second.split("-") - second = set(range(int(second_1), int(second_2)+1)) + second = set(range(int(second_1), int(second_2) + 1)) lines.append((first, second)) return lines diff --git a/2022/inputs/day04 b/2022/inputs/day04 index 939866e..a03fd58 100644 --- a/2022/inputs/day04 +++ b/2022/inputs/day04 @@ -997,4 +997,4 @@ 16-33,16-33 26-26,26-99 42-83,78-79 -5-17,4-67 \ No newline at end of file +5-17,4-67 diff --git a/2022/inputs/day04-test1 b/2022/inputs/day04-test1 index 99a66c5..9f9e9cf 100644 --- a/2022/inputs/day04-test1 +++ b/2022/inputs/day04-test1 @@ -3,4 +3,4 @@ 5-7,7-9 2-8,3-7 6-6,4-6 -2-6,4-8 \ No newline at end of file +2-6,4-8