fix: use poetry run for pre-commit in husky hook (#9934)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Carlos Freund 2025-07-28 14:08:29 +02:00 committed by GitHub
parent a59a6f3041
commit b5146e3188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,4 +8,4 @@ npx lint-staged
# Run backend pre-commit
echo "Running backend pre-commit..."
cd ..
pre-commit run --files openhands/**/* evaluation/**/* tests/**/* --show-diff-on-failure --config ./dev_config/python/.pre-commit-config.yaml
poetry run pre-commit run --files openhands/**/* evaluation/**/* tests/**/* --show-diff-on-failure --config ./dev_config/python/.pre-commit-config.yaml