python
Installation
SKILL.md
Python Workflow
Use this skill when working on Python projects or adding Python support.
Tooling baseline
- Use
uvfor environments, dependency management, and running commands. - Prefer Astral tooling for quality gates:
rufffor lint/format andtyfor type checking. - Favor strict typing everywhere; avoid
Anyunless the boundary truly requires it.
Typing and schemas
- Type every function signature (params + return) and keep types narrow.
- Use Pydantic models for inputs, outputs, and configuration schemas.
- Prefer typed collections and
typing_extensionsfor newer typing features.
Testing
- Write tests with
pytestand property tests withhypothesiswhen behavior is stateful or rule-based. - Add coverage checks (e.g., pytest-cov) and keep coverage green for new code paths.
Packaging
- Structure the code as a releasable PyPI package.
- Use a
pyproject.tomlwith build metadata, versioning, and asrc/layout. - Ensure imports and entrypoints work when installed from a wheel.
Quality gates
- Run formatting last.
- Keep linting, type checking, and tests passing before closing work.
Related skills
More from lambdamechanic/skills
dumbwaiter-mcp
Provider-agnostic wait-for-change skill that uses the Dumbwaiter MCP server to wait on PR events (GitHub first) via wait.start/status/cancel/await, with progress notifications and durable state.
59rust-guidelines
Pragmatic Rust conventions to keep code readable, testable, and performant for this project.
9landing-the-plane
Checklist for finishing work, pushing a branch, and opening a ready-for-review PR with tests and tracker updates.
8typescript
Default TypeScript stack for Lambda: pnpm workspaces + Turbo, strict TS, and sensible DX helpers.
6galahad
how to approach tests, types and coverage
5zfc
Zero Framework Cognition Principles
5