Skip to content

Align CONTRIBUTING, Python formatting (Black/isort), and CI #645

@dmartinol

Description

@dmartinol

Context

CONTRIBUTING recommends uv run black . and uv run isort ., but the repo is not fully formatted to that baseline, so those commands produce large, unrelated diffs. CI does not run Black or isort, so drift is easy to miss.

Goal

Make docs, repo state, and automation agree so contributors know what to run and PRs stay reviewable.

Proposed work

  1. CONTRIBUTING — Document the intended workflow: either a one-time full-tree format + “keep it green,” or “format only files you change” until a dedicated formatting PR lands. Note that Black should not be applied to Markdown.
  2. Optional formatting PR — Single change-set that runs Black/isort across the agreed Python paths so black . / isort . stop exploding diffs.
  3. Pre-commit — Black + isort (check-only or auto-format, per team preference) so local commits match project rules.
  4. CI — Same rules as pre-commit (e.g. black --check, isort --check-only) in PR workflows, aligned with Python version / Black target (e.g. match ci.yml).

Success criteria

  • CONTRIBUTING matches what maintainers expect and what CI enforces
  • Pre-commit and CI use the same formatter config
  • (If chosen) main is formatted so repo-wide format commands are low-noise

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ci-cdGitHub workflows, merge queue, gh-aw integrations, release pipeline.area/testingTest infrastructure, fixtures, e2e harness, coverage.enhancementDeprecated: use type/feature. Kept for issue history; will be removed in milestone 0.10.0.good first issueGood for newcomersneeds-triageDeprecated: use status/needs-triage. Kept for issue history; will be removed in milestone 0.10.0.status/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).type/refactorInternal restructure, no behavior change.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions