Axon Shaft docs
Templates

Python service

For Python services: the same checks as the API template, with typed Python in place of React.

  • Kind: Code review
  • Category: By project type
  • Added to new projects: No

Checklists, in order

  1. Correctness: Logic errors, missing awaits, off-by-one, empty and null cases, races.
  2. Access control: Whether each new route or handler checks who may call it, including who owns the IDs it takes, tenant isolation and roles.
  3. Security: Secrets, injection, unchecked input, weaker auth, unsafe workflow changes.
  4. What else it can break: Callers, exports and configs elsewhere in the repo that the change didn't update.
  5. Database migrations: Migrations that lock tables, lose data or break the running version, and hand-written ones where the repo generates them.
  6. Type safety: New any types, unsafe casts, ignored type errors, non-null assertions and missing type hints in typed Python.
  7. Failure handling: Timeouts on network calls, retries only on work that is safe to repeat, cleanup on error and partial writes.
  8. Performance: N+1 queries, awaits in loops, unbounded queries or lists and slow work in hot paths and renders.
  9. Personal data and logs: Personal data, tokens or payment data sent to logs, analytics, error reports or URLs.
  10. Tests: Changed behaviour without a test, or a test that can never fail.
  11. Dependencies: Added, removed and upgraded packages, major bumps, packages in the wrong dependency list and packages nothing imports.
  12. Known vulnerabilities: Added or changed package versions with a published security advisory.
  13. Secrets: Keys, tokens and private keys in added lines.

Last updated on