Skip to content

Commit 45d074d

Browse files
dhellmannClaude
andcommitted
docs: strengthen import guidelines for AI agents
Enhance agent instruction import placement guidelines to be more explicit: - Add "ALWAYS FOLLOW" to section heading - Strengthen language: "MUST" instead of "should" - Add "ALL Python files" clarification - Emphasize "under any circumstances" for local imports Ensures future AI agents clearly understand PEP 8 import requirements. Co-Authored-By: Claude <claude@anthropic.com>
1 parent b4f9c61 commit 45d074d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ These run automatically on commit if installed with `hatch run lint:install-hook
121121

122122
## Code Patterns
123123

124-
**Import Guidelines:**
124+
**Import Guidelines (ALWAYS FOLLOW):**
125125

126-
- **PEP 8: imports should be at the top**: All import statements must be placed at the top of the file, after module docstrings and before other code
127-
- **No local imports**: Do not place import statements inside functions, methods, or conditional blocks
126+
- **PEP 8: imports should be at the top**: All import statements MUST be placed at the top of the file, after module docstrings and before other code. This applies to ALL Python files in the project.
127+
- **No local imports**: Do not place import statements inside functions, methods, or conditional blocks under any circumstances
128128

129129
### Testing Pattern
130130

0 commit comments

Comments
 (0)