From 5707083c8c1f9af65a2db73d20f44a634d565023 Mon Sep 17 00:00:00 2001 From: Deborah Brouwer Date: Mon, 16 Dec 2024 17:26:32 -0800 Subject: [PATCH] ci: update_traces_checksum: fix E501 line too long Currently the update_traces_checksum script prints a label verification request with a line that is 167 characters long. Split the long line to make it more readable. Update the flake8 configuration to enforce a maximum line length of 159 characters to ensure consistency. Part-of: --- .gitlab-ci/.flake8 | 2 +- bin/ci/update_traces_checksum.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/.flake8 b/.gitlab-ci/.flake8 index 95db896bc0b..1be72fc7848 100644 --- a/.gitlab-ci/.flake8 +++ b/.gitlab-ci/.flake8 @@ -2,7 +2,7 @@ exclude = .venv*, # PEP 8 Style Guide limits line length to 79 characters -max-line-length = 167 +max-line-length = 159 ignore = # continuation line under-indented for hanging indent diff --git a/bin/ci/update_traces_checksum.py b/bin/ci/update_traces_checksum.py index b3411aaaeb2..b62556d441d 100755 --- a/bin/ci/update_traces_checksum.py +++ b/bin/ci/update_traces_checksum.py @@ -96,7 +96,11 @@ def gather_results( continue if "label" in target['traces'][trace][dev_name]: - print(f'{dev_name}: {trace}: please verify that label {Fore.BLUE}{target["traces"][trace][dev_name]["label"]}{Style.RESET_ALL} is still valid') + print( + f"{dev_name}: {trace}: please verify that label " + f"{Fore.BLUE}{target['traces'][trace][dev_name]['label']}{Style.RESET_ALL} " + "is still valid" + ) print(Fore.GREEN + f'{dev_name}: {trace}: checksum updated' + Style.RESET_ALL) target['traces'][trace][dev_name]['checksum'] = checksum