Enhance coding guidelines in .cursor/rules/coderule.mdc and .cursor/rules/python.mdc

- Added a guideline to place all source code under the `src/` directory in `coderule.mdc`.
- Removed the outdated guideline regarding the `src/` layout in `python.mdc` to streamline project structure.

These updates improve project organization and maintainability by clarifying the structure for source code and project files.
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-28 16:18:07 +02:00
parent 15ca9868d5
commit af8ef51bea
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -21,3 +21,4 @@ alwaysApply: true
- Make sure we don't commit binaries, create and keep .gitignore up to date and delete binaries after you are done with the task
- Never force-push to main or dev branches
- Place all source code under the `src/` directory; keep project-level config, tests, and tooling at the repo root
-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