Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
reschandreas committed Dec 16, 2023
1 parent 769fbac commit 490ae9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/migration/extract_bamboo_plans.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# type: ignore
import os
import time
import typing
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 490ae9e

Please sign in to comment.