This page documents the expected code quality standards for Charm contributions.Documentation Index
Fetch the complete documentation index at: https://docs.charmos.io/llms.txt
Use this file to discover all available pages before exploring further.
General Principles
- Keep changes focused.
- Prefer readable code over clever code.
- Match nearby patterns.
- Add tests for behavior changes.
- Avoid unrelated refactors in feature or bugfix PRs.
Python
Use the repository’s configured tooling frompyproject.toml.
Expected checks may include:
- linting,
- formatting,
- type checking,
- tests.
Tests
Use focused tests for the changed behavior. Critical paths such as auth, billing, runner execution, package publishing, and migrations should have stronger coverage.Imports and Dependencies
- Avoid adding dependencies unless necessary.
- Prefer standard library or existing project dependencies.
- Keep runtime dependencies separate from development-only dependencies.
