Fix update doc along.

This commit is contained in:
Nicolas Patry 2025-02-26 14:45:58 +01:00
parent 733eb5fa90
commit d88ae2c5b2
No known key found for this signature in database
GPG Key ID: 4242CEF24CB6DBF9

View File

@ -142,14 +142,12 @@ def check_openapi(check: bool):
with open(tmp_filename, "w") as f:
json.dump(new_openapi_data, f, indent=2)
f.write("\n")
if check:
diff = subprocess.run(
[
"diff",
# allow for trailing whitespace since it's not significant
# and the precommit hook will remove it
"--ignore-trailing-space",
tmp_filename,
filename,
],