Update coding rules to enforce source code organization and clarify Python project structure

This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-06 04:59:44 +03:00
parent b0a03d36d6
commit 17555a4907
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -8,7 +8,6 @@ globs: ["**/*.py", "**/pyproject.toml", "**/requirements*.txt"]
- Use type hints on all function signatures; validate with `mypy` or `pyright`
- Use `pydantic` for data validation and serialization
- Import order: stdlib -> third-party -> local; use absolute imports
- Use `src/` layout to separate app code from project files
- Use context managers (`with`) for resource management
- Catch specific exceptions, never bare `except:`; use custom exception classes
- Use `async`/`await` with `asyncio` for I/O-bound concurrency