From cpython
Validates CPython commits for PEP 8 (Python), PEP 7 (C), trailing whitespace, no-type-annotations-in-Lib policy, and patchcheck. Guides pre-commit hooks and tests.
npx claudepluginhub joshuarweaver/cascade-code-languages-python --plugin gpshead-cpython-skillsThis skill uses the workspace's default tool permissions.
**Python code** (`Lib/` etc): Follow PEP 8. Be consistent with nearby code.
Applies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Builds DCF models with sensitivity analysis, Monte Carlo simulations, and scenario planning for investment valuation and risk assessment.
Calculates profitability (ROE, margins), liquidity (current ratio), leverage, efficiency, and valuation (P/E, EV/EBITDA) ratios from financial statements in CSV, JSON, text, or Excel for investment analysis.
Python code (Lib/ etc): Follow PEP 8. Be consistent with nearby code.
C code (Modules/, Objects/, Python/, Include/): Follow PEP 7. Be consistent with nearby code.
NEVER leave trailing whitespace on any line. Pre-commit hooks will catch this.
ALWAYS preserve the final newline at the end of files.
NEVER add type annotations to Lib/ tree. Stdlib doesn't use inline annotations (maintained in typeshed separately). Annotations may be OK in Tools/ or test code if requested.
No autoformatting by default. Only use Doc/venv/bin/ruff format if explicitly requested.
Before committing, run from repo root:
# 1. Pre-commit hooks (checks whitespace, file endings, syntax)
pre-commit run --all-files
# 2. Patchcheck (MUST PASS - validates C/Python style, docs, whitespace)
make -C $BUILD_DIR patchcheck
# 3. If you modified Doc/, verify reStructuredText
make -C Doc check
# 4. Run relevant tests
$BUILT_PY -m test test_yourmodule -j $(nproc)
Doc/): Follow Sphinx/reST conventions, verify with make -C Doc check