From 0f25890d3b715e0d056327b1b5a5f00a2b27bf5b Mon Sep 17 00:00:00 2001 From: robot-clickhouse Date: Sat, 26 Oct 2024 14:21:40 +0000 Subject: [PATCH] Automatic style fix --- ci/praktika/digest.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ci/praktika/digest.py b/ci/praktika/digest.py index d505e7e72064..93b62b13dc08 100644 --- a/ci/praktika/digest.py +++ b/ci/praktika/digest.py @@ -39,7 +39,9 @@ def calc_job_digest(self, job_config: Job.Config): sorted=True, ) - print(f"calc digest for job [{job_config.name}]: hash_key [{cache_key}], include [{len(included_files)}] files") + print( + f"calc digest for job [{job_config.name}]: hash_key [{cache_key}], include [{len(included_files)}] files" + ) # Sort files to ensure consistent hash calculation included_files.sort() @@ -98,8 +100,10 @@ def _calc_file_digest(file_path, hash_md5): if Path(file_path).is_symlink(): resolved_path = os.path.realpath(file_path) if not Path(resolved_path).is_file(): - print(f"WARNING: No valid file resolved by link {file_path} -> {resolved_path} - skipping digest calculation") - return hash_md5.hexdigest()[:Settings.CACHE_DIGEST_LEN] + print( + f"WARNING: No valid file resolved by link {file_path} -> {resolved_path} - skipping digest calculation" + ) + return hash_md5.hexdigest()[: Settings.CACHE_DIGEST_LEN] with open(resolved_path, "rb") as f: for chunk in iter(lambda: f.read(4096), b""):