Python

Guidelines when creating, reading, updating, or deleting Python code

majiayu000 Updated 567 repo stars

File contents

Makefile Formatting

Instructions

imports

Imports should always be at the top of the file. NEVER have local imports unless it is 100% necessary.

formatting

For big numbers, use _ to make numbers more clear BAD: foo = 1000 GOOD: foo = 1_000

init.py files

Do not add anything inside of __init__.py files unless it is absolutely necessary or you are explicitly asked to.

majiayu000/claude-skill-registry-data/tree/main/development/python commit 724101c087

Frequently asked questions

npx skillmds@latest add majiayu000/python-8