python · git:20260915.f17c505 · 2026-09-15 · sha256 719ca9f78a8c23c6

python git:20260915.f17c505A

Immutable. This exact content is served forever at /api/v1/blob/719ca9f78a8c23c6.

---
description: Python coding standards (Frontier)
globs: **/*.py,**/*.pyx
alwaysApply: false
---

# Python (Frontier)

Canonical: `.github/instructions/python.instructions.md` and
`.github/skills/languages/python/SKILL.md` -- read for full standards.

- PEP 8; type hints on all signatures; Black 88-col; `ruff` lint/format.
- Google-style docstrings; pytest (+ pytest-asyncio); name tests
  `test_function_scenario_expected`.
- Catch specific exceptions, never bare `except:`.
- Parameterize SQL via ORM or `cursor.execute(sql, params)` -- never f-strings.
- Secrets via env/Key Vault, never hardcoded.