Python Development

You MUST activate this skill when working on Python projects

sammcj Updated

File contents

Python

  • Favour Python 3.14+ features. Use uv for .venv management. Use uvx ty check for type checking
  • Type hints for all functions. Dataclasses for data structures. Pathlib over os.path. f-strings
  • For standalone scripts that have a few dependencies, use PEP 723 to declare dependencies in a TOML block inside # /// markers (e.g. # /// script\n# dependencies = [\n# "beautifulsoup4",\n# ]\n# ///)

sammcj/agentic-coding/tree/main/Skills/python-development commit 2995004917

Frequently asked questions

npx skillmds@latest add sammcj/python-development