chore: fix inaccuracies and improve AGENTS.md#369
Conversation
…TS.md - Code organization: public before private, class method ordering, section comments for larger modules - Naming: function names must start with action verbs - Design principles: DRY, KISS, YAGNI, SOLID guidelines - Testing: parametrization, minimal fixtures, mock at boundaries, test behavior not implementation
- Update ruff version to >=0.14.10 and Python target to 3.10+ - Add missing linter rules (TID, UP006, UP007, UP045) - Document `from __future__ import annotations` as project convention - Merge duplicate Naming sections, deduplicate type annotation guidance - Clarify DRY vs KISS tension with "third occurrence" rule of thumb - Fix test example missing `Any` import - Add `make perf-import` to Common Development Tasks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Greptile SummaryThis PR fixes several inaccuracies in Corrections validated against source of truth:
New guidelines added:
One inconsistency found:
|
Update to match actual codebase convention: dunders first, then properties, then public methods, then private helpers. Add note about grouping related method types together. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Additional Comments (1)
The example test structure was updated to follow project conventions (adding
Since this snippet is the canonical template developers will copy, it should demonstrate the full set of required conventions. Consider adding it: |
📋 Summary
Fix stale/incorrect information in AGENTS.md and improve consistency by aligning documented conventions with actual project configuration.
🔄 Changes
✨ Added
from __future__ import annotationsas an explicit project-wide conventionmake perf-importto Common Development Tasks section🐛 Fixed
v0.12.3→>=0.14.10(matches pyproject.toml)3.11+→3.10+(matchesrequires-pythonand rufftarget-version)TID,UP006,UP007,UP045; removedUPfrom "commented out" listfrom typing import Anyimport and type annotations🔧 Changed
🤖 Generated with AI