[Enhancement] Strengthen pre-commit hooks and replace CPU-only CI - #271
Merged
Conversation
## Summary - Introduced a new `.markdownlint.yaml` file to enforce markdown linting rules for documentation and READMEs. - Updated `.pre-commit-config.yaml` to include various hooks for linting, formatting, and type checking, including: - YAML validation - Markdown linting - Shell script linting - Type checking with mypy for multiple Python versions - Added new scripts for checking Buildkite YAML and ensuring SPDX headers are present in source files. ## Test Plan - [ ] Verify that pre-commit hooks run successfully on changed files. - [ ] Ensure markdown files adhere to the specified linting rules. - [ ] Confirm that all new scripts function as intended. Signed-off-by: [Your Name] <[Your Email]> Signed-off-by: wangyu <410167048@qq.com>
yenuo26
requested review from
hsliuustc0106 and
jiangkuaixue123
as code owners
August 26, 2026 09:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/cpu-only-ci.ymlwith apre-commitworkflow that checks only files changed in the PR/push, and installsshellcheckin CI..pre-commit-config.yamlwith ruff/typos/actionlint/markdownlint, plus local hooks for mypy, SPDX headers, shellcheck, Buildkite schema validation, and DCO sign-off.tools/pre_commit/helpers and.markdownlint.yaml/[tool.mypy]; exposerender_test_pipelinefor schema checks.Test plan
pre-commit installthen commit a small change and confirm hooks run on staged files onlypre-commitworkflow passes.buildkite/*.ymlfile and confirmcheck-buildkitevalidates afterrender_test_pipeline.sh/ docs / Python file and confirm shellcheck / markdownlint / mypy / SPDX behave as expectedTest Result