Files
Virtnet.bond/.cursor/rules/poetry.mdc

333 lines
26 KiB
Plaintext

---
description: This rule set provides comprehensive guidance on best practices for using Poetry in Python projects, including dependency management, project structure, and coding standards. It covers various aspects such as code organization, performance considerations, security, testing, and tooling.
globs: *.py
---
# Poetry Python Library Best Practices
This document outlines best practices for utilizing Poetry, a dependency management and packaging tool for Python. Following these guidelines will result in more maintainable, scalable, and robust Python projects.
## 1. Code Organization and Structure
A well-organized project structure is critical for maintainability and collaboration. Poetry provides the tools to enforce a standardized structure.
### 1.1 Directory Structure Best Practices