From aa9e8222a3f9f0d849606d3e1796d4a6b03f51b7 Mon Sep 17 00:00:00 2001 From: meeks Date: Sun, 19 Jul 2026 12:36:49 +0200 Subject: [PATCH] docs: add import organization guidelines to AGENTS.md --- AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 8194a0e..e05092a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,11 @@ # Agent Instructions +## Import Organization + +- **Keep all imports at the top of the file.** Never add imports inside functions, methods, or conditional blocks. +- Use absolute imports for project modules (e.g., `from gitea.models import IssueModel`). +- Remove unused imports when editing files. + ## Python Type Hints (REQUIRED) - **All functions must have type hints** for parameters and return types.