mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-28 21:42:06 +00:00
Fix update doc along.
This commit is contained in:
parent
733eb5fa90
commit
d88ae2c5b2
@ -142,14 +142,12 @@ def check_openapi(check: bool):
|
|||||||
|
|
||||||
with open(tmp_filename, "w") as f:
|
with open(tmp_filename, "w") as f:
|
||||||
json.dump(new_openapi_data, f, indent=2)
|
json.dump(new_openapi_data, f, indent=2)
|
||||||
|
f.write("\n")
|
||||||
|
|
||||||
if check:
|
if check:
|
||||||
diff = subprocess.run(
|
diff = subprocess.run(
|
||||||
[
|
[
|
||||||
"diff",
|
"diff",
|
||||||
# allow for trailing whitespace since it's not significant
|
|
||||||
# and the precommit hook will remove it
|
|
||||||
"--ignore-trailing-space",
|
|
||||||
tmp_filename,
|
tmp_filename,
|
||||||
filename,
|
filename,
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user