From 24ef2c247d4d8a7d0de6a7e7fd33e88c18365f16 Mon Sep 17 00:00:00 2001 From: Richard Tang Date: Sun, 19 Apr 2026 13:24:34 -0700 Subject: [PATCH] chore: tidy editorconfig and gitattributes, drop unused reference --- .editorconfig | 3 +++ .gitattributes | 6 +++++- docs/contributing-lint-setup.md | 5 ----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index 252d4146..103c07b9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -22,3 +22,6 @@ indent_size = 2 [Makefile] indent_style = tab + +[*.{sh,ps1}] +end_of_line = lf diff --git a/.gitattributes b/.gitattributes index 3db0e152..24548be8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -16,7 +16,6 @@ # Shell scripts (must use LF) *.sh text eol=lf -quickstart.sh text eol=lf # PowerShell scripts (Windows-friendly) *.ps1 text eol=lf @@ -122,3 +121,8 @@ CODE_OF_CONDUCT* text *.db binary *.sqlite binary *.sqlite3 binary + +# Lockfiles — mark generated so GitHub collapses them in PR diffs +*.lock linguist-generated=true -diff +package-lock.json linguist-generated=true -diff +uv.lock linguist-generated=true -diff diff --git a/docs/contributing-lint-setup.md b/docs/contributing-lint-setup.md index f597da0a..d2d7cbd3 100644 --- a/docs/contributing-lint-setup.md +++ b/docs/contributing-lint-setup.md @@ -98,10 +98,6 @@ For any editor, you can always rely on `make lint` and `make format` from the co The repository includes a `.claude/settings.json` hook that automatically runs `ruff check --fix` and `ruff format` after every file edit made by Claude Code. No setup needed — it works out of the box. -### Cursor - -The `.cursorrules` file at the repo root tells Cursor's AI the project's style rules (line length, import order, quote style, etc.) so generated code follows convention. - ### Codex CLI Codex CLI (OpenAI, v0.101.0+) is supported via `.codex/config.toml` (MCP server config). This file is tracked in git. Run `codex` in the repo root to use the configured MCP tools. See the [Codex CLI section in the README](../README.md#codex-cli) for details. @@ -137,7 +133,6 @@ make check # Verify locally before pushing | `.pre-commit-config.yaml` | Pre-commit hook definitions | | `.vscode/settings.json` | VS Code ruff integration | | `.vscode/extensions.json` | Recommended VS Code extensions | -| `.cursorrules` | AI assistant context | | `.claude/settings.json` | Claude Code post-edit hooks | The single source of truth for lint rules is the `[tool.ruff]` section in each package's `pyproject.toml`. All other configs (VS Code, pre-commit, Makefile, CI) reference these.