From 8db777ae8b8b74b18042566637b1b3e6ec481108 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 20 Jul 2025 07:35:48 +0200 Subject: [PATCH] Update development guidelines for type annotations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- CLAUDE.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9e8db6d..f74c53c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,7 +11,9 @@ This is a personal agenda web application built with Flask that tracks various e ## Python Environment - Always use `python3` directly, never `python` -- Run `black` code formatter on modified code after creating or modifying Python files +- All Python code should include type annotations +- Use `typing.Any` instead of `Any` in type hints (import from typing module) +- Run `mypy --strict` (fix any type errors in the file) and `black` on modified code after creating or modifying Python files - Avoid running `black .` - Main entry point: `python3 web_view.py` (Flask app on port 5000) - Tests: Use `pytest` (tests in `/tests/` directory)