python · git:20261010.87e53aa · 2026-10-10 · sha256 f324b928234feb62

python git:20261010.87e53aaA

Immutable. This exact content never changes and is served at /api/v1/blob/f324b928234feb62.

---
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 through
`pwsh -NoProfile -File .frontier/runtime/frontier.ps1 cursor read <canonical-path>`.

- 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.