-
Notifications
You must be signed in to change notification settings - Fork 14
Add pre-commit setup #389
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
Add pre-commit setup #389
Conversation
Saviq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup.
|
@copilot please rebase |
I've successfully rebased the branch onto the latest main (83abb18). The rebase resolved conflicts where the spread build task files were deleted in main but had whitespace fixes in my changes. However, I cannot force-push the rebased branch due to system restrictions. The rebased commits are ready locally:
Could you please force-push the branch, or grant permission for me to do so? |
5eea31e to
5a07cbe
Compare
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
5a07cbe to
dce31b8
Compare
TICS Quality Gate✔️ Passedwlcs
|
Adds pre-commit configuration and GitHub Actions workflow, copied from canonical/mir repository.
Changes
.pre-commit-config.yaml- Hooks for trailing whitespace, end-of-file fixing, large file detection, mdformat, and pymarkdown.pymarkdown.json- Markdown linting rules adapted from mir's configuration.github/workflows/pre-commit.yaml- Workflow runs on PRs and main branch pushes, auto-applies fixes via pre-commit-ci/lite-actionConfiguration
Pre-commit hooks automatically applied formatting fixes to existing files (trailing whitespace and EOF normalization). The workflow uses explicit
contents: writepermissions per security requirements.The pymarkdown config path was adapted from mir's
doc/sphinx/.sphinx/.pymarkdown.jsonto.pymarkdown.jsonin root, as wlcs lacks the sphinx directory structure.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.