Skip to content

Commit de31e32

Browse files
committed
1. Updated formatting
2. Added sorting to README.md
1 parent cf05d46 commit de31e32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/generate_package_diffs_for_flavors/generate_package_diffs_for_flavors.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ def compare_flavor(
225225

226226
def get_last_git_tag() -> str:
227227
get_fetch_command = ["git", "fetch"]
228-
subprocess.run(
229-
get_fetch_command, stderr=subprocess.STDOUT, check=True
230-
)
228+
subprocess.run(get_fetch_command, stderr=subprocess.STDOUT, check=True)
231229
get_main_branch_command = ["git", "symbolic-ref", "refs/remotes/origin/HEAD"]
232-
get_main_branch_result = subprocess.run(get_main_branch_command, stdout=subprocess.PIPE)
230+
get_main_branch_result = subprocess.run(
231+
get_main_branch_command, stdout=subprocess.PIPE
232+
)
233233
get_main_branch_result.check_returncode()
234234

235235
main_branch_name = get_main_branch_result.stdout.decode("utf-8").strip()
@@ -378,7 +378,7 @@ def generate_dependency_diff_report_for_all_flavors(
378378
f"{working_copy_1_name} and "
379379
f"{working_copy_2_name}\n\n"
380380
)
381-
for flavor_path in Path(working_copy_1_root, "flavors").iterdir():
381+
for flavor_path in sorted(Path(working_copy_1_root, "flavors").iterdir()):
382382
if flavor_path.is_dir():
383383
relative_flavor_path = flavor_path.relative_to(working_copy_1_root)
384384
relative_flavor_path_2 = relative_flavor_path

0 commit comments

Comments
 (0)