Fix linting errors in the utils

This commit is contained in:
Veronica Berglyd Olsen
2025-04-07 17:21:01 +02:00
parent 9b93736985
commit 72652fecaa
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ def makeCheckSum(sumFile: str, cwd: Path | None = None) -> str:
shaFile = f"{sumFile}.sha256"
else:
shaFile = cwd / f"{sumFile}.sha256"
with open(shaFile, mode="w") as fOut:
with open(shaFile, mode="w", encoding="utf-8") as fOut:
subprocess.call(["shasum", "-a", "256", sumFile], stdout=fOut, cwd=cwd)
print(f"SHA256 Sum: {shaFile}")
except Exception as exc: