Skip to content

Add option to return non-zero on write, and Agent guidance - #4047

Merged
larsoner merged 1 commit into
codespell-project:mainfrom
larsoner:exit-non-zero-on-fix
Oct 13, 2026
Merged

larsoner merged 1 commit into
codespell-project:mainfrom
larsoner:exit-non-zero-on-fix

Conversation

@larsoner

Copy link
Copy Markdown
Member
  1. Add option to have -w return non-zero if it writes, like most linting utils do
  2. Add Agents.md based on https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/, plus a pref to follow sklearn's "interactions should be between humans" guidance.

(1) is pretty oncontroversial

(2) is opinionated so we could debate, but I think it's better than nothing. I've used guidance like this for a while in MNE-Python and it's mostly working

Eating my own dogfood, I had Claude Opus 5.5 draft these changes and I reviewed and understood them.

@larsoner
larsoner requested a review from peternewman as a code owner October 13, 2026 18:34
@larsoner
larsoner enabled auto-merge (squash) October 13, 2026 18:34
@larsoner
larsoner merged commit 6e8b7f2 into codespell-project:main Oct 13, 2026
16 of 17 checks passed
@larsoner
larsoner deleted the exit-non-zero-on-fix branch October 13, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant