Skip to content

Commit

Permalink
Fixes format checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay committed Sep 21, 2023
1 parent fc93604 commit 899f9be
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packaging_automation/update_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SupportedDockerImages(Enum):


def update_docker_file_for_latest_postgres(
project_version: str, template_path: str, exec_path: str, postgres_version: str
project_version: str, template_path: str, exec_path: str, postgres_version: str
):
minor_version = get_minor_project_version_for_docker(project_version)
debian_project_version = project_version.replace("_", "-")
Expand All @@ -69,7 +69,7 @@ def update_docker_file_for_latest_postgres(


def update_regular_docker_compose_file(
project_version: str, template_path: str, exec_path: str
project_version: str, template_path: str, exec_path: str
):
minor_version = get_minor_project_version_for_docker(project_version)
content = process_template_file_with_minor(
Expand All @@ -85,7 +85,7 @@ def update_regular_docker_compose_file(


def update_docker_file_alpine(
project_version: str, template_path: str, exec_path: str, postgres_version: str
project_version: str, template_path: str, exec_path: str, postgres_version: str
):
minor_version = get_minor_project_version_for_docker(project_version)
content = process_template_file_with_minor(
Expand All @@ -100,7 +100,7 @@ def update_docker_file_alpine(


def update_docker_file_for_postgres15(
project_version: str, template_path: str, exec_path: str, postgres_version: str
project_version: str, template_path: str, exec_path: str, postgres_version: str
):
minor_version = get_minor_project_version_for_docker(project_version)
debian_project_version = project_version.replace("_", "-")
Expand All @@ -117,7 +117,7 @@ def update_docker_file_for_postgres15(


def update_docker_file_for_postgres14(
project_version: str, template_path: str, exec_path: str, postgres_version: str
project_version: str, template_path: str, exec_path: str, postgres_version: str
):
minor_version = get_minor_project_version_for_docker(project_version)
debian_project_version = project_version.replace("_", "-")
Expand Down Expand Up @@ -152,10 +152,10 @@ def update_changelog(project_version: str, exec_path: str):
latest_changelog = get_new_changelog_entry(project_version)
changelog_file_path = f"{exec_path}/CHANGELOG.md"
with open(
changelog_file_path,
"r+",
encoding=DEFAULT_ENCODING_FOR_FILE_HANDLING,
errors=DEFAULT_UNICODE_ERROR_HANDLER,
changelog_file_path,
"r+",
encoding=DEFAULT_ENCODING_FOR_FILE_HANDLING,
errors=DEFAULT_UNICODE_ERROR_HANDLER,
) as reader:
if f"({project_version}" not in reader.readline():
reader.seek(0, 0)
Expand All @@ -176,7 +176,7 @@ def update_all_docker_files(project_version: str, exec_path: str):
(
postgres_16_version,
postgres_15_version,
postgres_14_version
postgres_14_version,
) = read_postgres_versions(pkgvars_file)

latest_postgres_version = postgres_16_version
Expand Down

0 comments on commit 899f9be

Please sign in to comment.