From 490ae9ed822d3ea6b17629297c7b1480823c86f7 Mon Sep 17 00:00:00 2001 From: Andreas Resch Date: Sat, 16 Dec 2023 14:05:59 +0100 Subject: [PATCH] linting --- cli/migration/extract_bamboo_plans.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/migration/extract_bamboo_plans.py b/cli/migration/extract_bamboo_plans.py index 1748bd2b..62539526 100644 --- a/cli/migration/extract_bamboo_plans.py +++ b/cli/migration/extract_bamboo_plans.py @@ -1,3 +1,4 @@ +# type: ignore import os import time import typing @@ -43,7 +44,6 @@ def read_env_vars() -> dict[str, str]: def main() -> None: # pylint: disable=too-many-locals - # pylint: broad-exception-caught plans: typing.List[typing.Tuple[str, str]] = get_build_plans() input_settings: InputSettings = InputSettings(file_path="extracted_build_plans.txt") output_settings: OutputSettings = OutputSettings() @@ -89,10 +89,10 @@ def main() -> None: failed_plans.append(plan[0]) continue print(f"{sleep_counter}/{len(plans)} Done") - with open("translation_times.txt", "w") as content: + with open("translation_times.txt", "w", encoding="utf-8") as content: for key in translationtimes.keys(): content.write(f"{key};{translationtimes[key]}\n") - with open("failed_plans.txt", "w") as content: + with open("failed_plans.txt", "w", encoding="utf-8") as content: for plan in failed_plans: content.write(f"{plan}\n")