Skip to content

Commit 2f2b15b

Browse files
nvzhihanjclaude
andcommitted
docs: strengthen pre-commit requirement in AGENTS.md
Make it explicit that pre-commit must run before every commit, no exceptions. Hooks may modify files — stage changes and commit once. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a7e6a75 commit 2f2b15b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pytest -m integration # Integration tests only
2121
pytest --cov=src --cov-report=html # With coverage
2222
pytest -xvs tests/unit/path/to/test_file.py # Single test file
2323

24-
# Code quality (run before commits)
24+
# Code quality — MUST run before every commit, no exceptions
2525
pre-commit run --all-files
2626

2727
# Local testing with echo server
@@ -210,7 +210,7 @@ All of these run automatically on commit:
210210
- `prettier` for YAML/JSON/Markdown
211211
- License header enforcement
212212

213-
**Always run `pre-commit run --all-files` before committing.**
213+
**IMPORTANT: Always run `pre-commit run --all-files` before every commit.** Hooks may modify files (prettier, ruff-format, license headers). If files are modified, stage the changes and commit once. Never commit without running pre-commit first.
214214

215215
### Data Types & Serialization
216216

0 commit comments

Comments
 (0)