diff --git a/.githooks/commit-msg b/.githooks/commit-msg deleted file mode 100755 index fe644d4..0000000 --- a/.githooks/commit-msg +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -# .githooks/commit-msg -# -# I reject commits that violate the style rules for this project: -# - no em dashes (U+2014) or en dashes (U+2013) -# - no Oxford-comma patterns ("a, b, and c") -# -# One-time setup per clone: git config core.hooksPath .githooks - -MSGFILE="$1" -# I normalise CRLFs before checking so Windows line endings do not cause false passes. -MSG="$(sed ':a;N;$!ba;s/\r//g' "$MSGFILE")" - -# I reject en-dash or em-dash characters outright. -if [[ "$MSG" =~ –|— ]]; then - echo "ERROR: commit message contains an en/em dash (- or -). Use a straight hyphen '-' instead." >&2 - exit 1 -fi - -# I detect the Oxford-comma pattern "word, word, and word" heuristically. -if echo "$MSG" | grep -Eq '[^,]+,\s*[^,]+,\s*and\s+[^,]+'; then - echo "ERROR: commit message appears to use an Oxford comma (\", x, and y\"). Remove it." >&2 - exit 1 -fi - -exit 0 diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg deleted file mode 100755 index 8de4ab9..0000000 --- a/.githooks/prepare-commit-msg +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# .githooks/prepare-commit-msg -# -# I strip Co-authored-by lines added by AI coding assistants. -# This repo does not accept AI co-author credits anywhere. -# -# One-time setup per clone: git config core.hooksPath .githooks - -MSG_FILE=$1 -[ -n "$MSG_FILE" ] && [ -f "$MSG_FILE" ] || exit 0 - -tmp="${MSG_FILE}.$$.tmp" -awk ' - /^Co-authored-by:/ { - line = tolower($0) - if (line ~ /cursor/ || line ~ /openai/ || line ~ /anthropic/ || line ~ /claude/ \ - || line ~ /copilot/ || line ~ /chatgpt/ || line ~ /grok/ || line ~ /x-ai/ \ - || line ~ /perplexity/ || line ~ /gemini/ || line ~ /github/) { - next - } - } - { print } -' "$MSG_FILE" > "$tmp" 2>/dev/null && mv "$tmp" "$MSG_FILE" || rm -f "$tmp" -exit 0 diff --git a/.gitignore b/.gitignore index ab4355a..baf706e 100644 --- a/.gitignore +++ b/.gitignore @@ -40,26 +40,15 @@ Thumbs.db .idea/ *.swp +# Linting cache +.ruff_cache/ + # Log files (but not the logs/ folder - that is committed) *.log # Local agent workspace - never commit .agents/ -# Reference extract folder - never commit -extract/ - -# Claude Code local config and rules - never commit -.claude/ -CLAUDE.md - -# Cursor IDE local config - never commit -.cursor/ - -# Local agent instructions -.github/AGENTS.md -.github/copilot-instructions.md - # Local-only session files - never commit, git pull must not overwrite them prompts/