Expert guidance for Python application development, including dependency management (uv, poetry, pip), project structure, type hinting, and testing with pytest.
This skill provides expert guidance for building robust, maintainable, and idiomatic Python applications.
uv init
uv add pytest ruff mypy
Prefer the src/ layout for better test isolation and package integrity:
project/
├── pyproject.toml
├── src/
│ └── package_name/
│ ├── __init__.py
│ └── main.py
├── tests/
│ └── test_main.py
└── README.md
async/await for I/O bound tasks.conftest.py in the tests/ directory for shared fixtures.pytest-mock.ruff check .ruff format .mypy srcpytest