Add yamllint pre-commit hook for YAML file standardization#11017
Add yamllint pre-commit hook for YAML file standardization#11017jbampton merged 7 commits intoapache:mainfrom
Conversation
Add yamllint hook to .pre-commit-config.yaml to standardize YAML files across the project. Created .yamllint.yml configuration with relaxed rules to accommodate existing files. Fixed colon spacing in .asf.yaml to pass yamllint checks. Closes apache#10974 Signed-off-by: vanzan01 <vanzan.1250@gmail.com>
|
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
Address review comment from DaanHoogland Signed-off-by: vanzan01 <vanzan.1250@gmail.com>
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11017 +/- ##
============================================
+ Coverage 3.62% 17.39% +13.77%
- Complexity 0 15284 +15284
============================================
Files 441 5889 +5448
Lines 37136 526184 +489048
Branches 6808 64242 +57434
============================================
+ Hits 1346 91540 +90194
- Misses 35626 424299 +388673
- Partials 164 10345 +10181
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13778 |
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 13794 |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13815 |
- Move .yamllint.yml to .github/linters/ directory for better organization - Update pre-commit config to point to new location - Change file pattern to \.ya?ml$ as suggested Address review feedback from jbampton Signed-off-by: vanzan01 <vanzan.1250@gmail.com>
Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
jbampton
left a comment
There was a problem hiding this comment.
https://github.com/apache/cloudstack/actions/runs/15782986518/job/44493446898?pr=11017
Can you fix the pre-commit workflow ?
- Remove extensive file exclusions, keep only k8s templates - Increase line length limit to 400 chars (GitHub Actions friendly) - Allow flexible colon spacing (max-spaces-after: -1) - Disable document-start requirement This provides linting value while handling infrastructure patterns. Signed-off-by: vanzan01 <vanzan.1250@gmail.com>
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
@jbampton , are your concerns addressed on this PR? |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14170 |
Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
|
@blueorangutan package |
|
@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
jbampton
left a comment
There was a problem hiding this comment.
Looks good.
pre-commit passes and no real code touched.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15109 |
|
3 approvals and the checks pass. No code changes just config files and minor whitespace. Merging. |
|
Awesome work, congrats on your first merged pull request! |
) * Add yamllint pre-commit hook for YAML file standardization Add yamllint hook to .pre-commit-config.yaml to standardize YAML files across the project. Created .yamllint.yml configuration with relaxed rules to accommodate existing files. Fixed colon spacing in .asf.yaml to pass yamllint checks. Closes apache#10974 Signed-off-by: vanzan01 <vanzan.1250@gmail.com> * Add extra eol to .yamllint.yml Address review comment from DaanHoogland Signed-off-by: vanzan01 <vanzan.1250@gmail.com> * Move .yamllint.yml to .github/linters/ and improve file pattern - Move .yamllint.yml to .github/linters/ directory for better organization - Update pre-commit config to point to new location - Change file pattern to \.ya?ml$ as suggested Address review feedback from jbampton Signed-off-by: vanzan01 <vanzan.1250@gmail.com> * Update .pre-commit-config.yaml Co-authored-by: John Bampton <jbampton@users.noreply.github.com> * Make yamllint more forgiving and exclude only k8s templates - Remove extensive file exclusions, keep only k8s templates - Increase line length limit to 400 chars (GitHub Actions friendly) - Allow flexible colon spacing (max-spaces-after: -1) - Disable document-start requirement This provides linting value while handling infrastructure patterns. Signed-off-by: vanzan01 <vanzan.1250@gmail.com> * Update .pre-commit-config.yaml Co-authored-by: John Bampton <jbampton@users.noreply.github.com> --------- Signed-off-by: vanzan01 <vanzan.1250@gmail.com> Co-authored-by: John Bampton <jbampton@users.noreply.github.com>

Add yamllint hook to .pre-commit-config.yaml to standardize YAML files across the project. Created .yamllint.yml configuration with relaxed rules to accommodate existing files. Fixed colon spacing in .asf.yaml to pass yamllint checks.
Changes
.pre-commit-config.yaml.yamllint.ymlconfiguration with relaxed rules for existing files.asf.yamlto pass yamllint checksTest plan
Closes #10974