-
Notifications
You must be signed in to change notification settings - Fork 286
fix: correct yaml linting hook and fix trailing spaces/comment spacing #611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: correct yaml linting hook and fix trailing spaces/comment spacing #611
Conversation
This PR addresses two issues: 1. **Fixed pre-commit hook configuration bug** - Changed line 57 in `.pre-commit-config.yaml` to call `make yaml-lint` instead of `make markdown-lint` 2. **Fixed simple YAML linting errors** - Applied automated fixes for: - Trailing whitespace in YAML files - Comment spacing (ensuring 2 spaces before inline comments) ## Problem The bug in `.pre-commit-config.yaml` caused: - ❌ YAML files not being properly linted locally - ✅ GitHub Actions CI catching the issues - 🤔 PRs failing in CI even though `pre-commit run --all-files` passed locally - 😓 Contributors forced to fix pre-existing YAML issues ## Changes 1. Changed `.pre-commit-config.yaml` line 57 from `make markdown-lint` to `make yaml-lint` 2. Fixed trailing spaces and comment spacing in 22 YAML files ## Note on Remaining Issues Some YAML files still have indentation errors that require more careful manual fixes. These can be addressed in follow-up PRs as files are modified. The important fix here is that local pre-commit checks now match CI checks. Fixes vllm-project#608 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> Signed-off-by: Yossi Ovadia <[email protected]>
✅ Deploy Preview for vllm-semantic-router ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
👥 vLLM Semantic Team NotificationThe following members have been identified for the changed files in this PR and have been automatically assigned: 📁
|
|
looking at the failures |
This commit fixes the pre-commit failures from the previous commit by: 1. **Fixed YAML indentation errors** in 16 Kubernetes/OpenShift deployment files - Re-parsed and reformatted YAML files with proper 2-space indentation - Fixed wrong indentation issues flagged by yamllint 2. **Excluded .venv from yamllint checks** - Added `.venv` to the ignore list in `tools/linter/yaml/.yamllint` - Prevents linting errors from third-party dependencies in virtual environment Files fixed: - deploy/kubernetes/ai-gateway/aigw-resources/* - deploy/kubernetes/aibrix/aigw-resources/* - deploy/kubernetes/istio/* - deploy/kubernetes/llmd-base/* - deploy/openshift/observability/prometheus/deployment.yaml - deploy/openshift/template.yaml Pre-commit now passes successfully. Co-Authored-By: Claude <[email protected]> Signed-off-by: Yossi Ovadia <[email protected]>
028c938 to
c45973e
Compare
|
this failed test, test has not been executed for a while now. it seems that chnage of: triggers quickstart test, which seems to fail on |

Summary
This PR addresses the confusion from PRs #609 and #610 by providing a complete solution that includes:
Problem
The bug in
.pre-commit-config.yamlline 57 caused:yamllint)pre-commit run --all-filespasses locallyChanges
1. Pre-commit Hook Fix
Changed line 57 in
.pre-commit-config.yaml:2. YAML Formatting Fixes
Applied automated fixes for 22 YAML files:
Testing
After the fix:
This confirms the hook now properly runs
yamllintand catches issues that GitHub Actions CI catches.Note on Remaining Issues
Some YAML files still have indentation errors that require more careful manual fixes. These are out of scope for this PR and can be addressed in follow-up PRs as files are modified. The important achievement here is that local pre-commit checks now match what GitHub Actions CI checks.
Relationship to Previous PRs
Fixes #608
Checklist