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

# Code Style & Standards

This page documents the expected code quality standards for Charm contributions.

## 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 this repository's configured tooling from `pyproject.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.

## Docs and Examples

If a public API, CLI command, manifest field, or template behavior changes, update docs in the same PR or leave a clear follow-up issue.
