mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
fix: alllow trailing space in openapi schema diff
This commit is contained in:
parent
2d0bd1ab6d
commit
fc2ce1cec1
@ -146,7 +146,15 @@ def check_openapi(check: bool):
|
||||
|
||||
if check:
|
||||
diff = subprocess.run(
|
||||
["diff", tmp_filename, filename], capture_output=True
|
||||
[
|
||||
"diff",
|
||||
# allow for trailing whitespace since it's not significant
|
||||
# and the precommit hook will remove it
|
||||
"--ignore-trailing-space",
|
||||
tmp_filename,
|
||||
filename,
|
||||
],
|
||||
capture_output=True,
|
||||
).stdout.decode()
|
||||
os.remove(tmp_filename)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user