[ci] Run ci-custom.py as a pre-commit check (#15411)

This commit is contained in:
Clyde Stubbs
2026-04-03 11:54:44 +10:00
committed by GitHub
parent bcd8ddeabe
commit 6f05e3d204
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ def find_and_activate_virtualenv():
def run_command():
# Execute the remaining arguments in the new environment
if len(sys.argv) > 1:
subprocess.run(sys.argv[1:], check=False, close_fds=False)
result = subprocess.run(sys.argv[1:], check=False, close_fds=False)
sys.exit(result.returncode)
else:
print(
"No command provided to run in the virtual environment.",