chore: adopt make pre-commit workflow with full pre-commit hook suite - #80
Open
Lang-Akshay wants to merge 5 commits into
Open
chore: adopt make pre-commit workflow with full pre-commit hook suite#80Lang-Akshay wants to merge 5 commits into
Lang-Akshay wants to merge 5 commits into
Conversation
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
Signed-off-by: Lang-Akshay <akshay.shinde26@ibm.com>
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
Adopts the
make pre-commitworkflow for the data-plane repo, mirroring the ContextForge control-plane pre-commit setup.Changes
.pre-commit-config.yaml— full hook suite: private key detection, large-file guard, merge-conflict check, end-of-file / trailing-whitespace / encoding fixers, BiDi control forbid, AI-slop guards, IBM detect-secrets, and Rust hooks (cargo fmt, clippy, deny, nextest, build, bench). Allrevs pinned to commit SHAs. End-of-file fixer excludes.gitignore(intentionally no trailing newline).Makefile—make pre-committarget: runs the full suite hermetically withPRE_COMMIT_HOMEandTMPDIRredirected under.cache/(nothing written to~)..secrets.baseline— generated baseline for IBM detect-secrets covering dev TLS/JWT keys inassets/, test fixture secrets, and scanner test-vector strings insidecpex-secrets-detection.scripts/git/resolve-secrets-baseline-conflict.sh— helper to resolve merge conflicts in.secrets.baselineby re-scanning..gitignore— adds.cache/(pre-commit home, venvs, tmp)..gitattributes— marks generated/binary files for diff hygiene.Acceptance
make pre-commitruns the full suite against all files and passes on a clean tree..cache/— nothing written to~.Closes IBM/mcp-context-forge#5960