ci: add pre-commit workflow and AI artifact hooks - #4
Merged
Conversation
Adds a GitHub Actions workflow that runs pre-commit on every PR and push to main, plus a pre-commit config covering: - Standard hygiene (trailing whitespace, EOF, merge conflicts, YAML/JSON, large files, line endings) via pre-commit/pre-commit-hooks v6.0.0. - Markdown-scoped deny rules for common AI-generated stylistic tells: em dashes, smart quotes, unicode ellipsis, filler vocabulary (delve, leverage, seamless, robust, comprehensive, etc.), bolded section titles, and bolded callout prefixes. Workflow uses cloudposse/github-action-pre-commit v4.0.0; all actions SHA-pinned per security baseline. Prose hooks scoped to markdown so existing HTML pages (titles, quote attributions, resume headings) keep their intentional typography. Co-Authored-By: my CLI familiar (🤖 trained on the public internet, mostly) <noreply@anthropic.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.
what
.github/workflows/pre-commit.yaml) that runs pre-commit on every PR and push tomain, viacloudposse/github-action-pre-commit@v4.0.0(SHA-pinned)..pre-commit-config.yamlwith two layers of hooks:pre-commit/pre-commit-hooks@v6.0.0: trailing whitespace, EOF fixer, merge-conflict markers, YAML/JSON syntax, large files, line endings.delve,leverage,seamless,robust,comprehensive,in conclusion,it is worth noting,dive deep,navigate the landscape/complexities), bolded section titles (**Title:**on a line), and bolded callout prefixes (**Note:**,**Tip:**,**Warning:**, etc.).CLAUDE.md,BLOG_POST_TEMPLATE.md, the config itself,_site/, andGemfile.lock.why
Company — Role, quote attributions like— Albert Einstein, lists likeHanjie…) use em dashes and ellipses as typography, not AI artifacts. The existing HTML would also tripno-ai-filleronleverage AI toolingandrobust systemsif widened; left for a follow-up if desired.references
pre-commit run --all-files).pre-commit-hooksv5.0.0 to v6.0.0); one dismissed (suggestion to swap CloudPosse action for upstreampre-commit/action, since CloudPosse fork was chosen deliberately).[“”‘’]becomes a class of individual UTF-8 bytes and false-positives on unrelated multi-byte chars (↗,└,⚙️). Alternation (“|”|‘|’) is correct; documented inline in the config.🦊 Pair-programmed with Claude Code.