Skip to content

chore: reformat tree with cargo fmt and add fmt to CI gate #4

Closed

Description

@inureyes

Follow-up to #1 (OSS release rollout) and #3 (security automation + community health).

PR #3 added .github/workflows/ci.yml with a cargo deny check gate, but intentionally skipped cargo fmt --all -- --check because the tree currently has 214 fmt violations accumulated from periods when no fmt enforcement was in place. Adding fmt to CI as part of PR #3 would have required a 214-file reformat diff bundled with unrelated security work, which was out of scope.

This issue tracks the dedicated cleanup PR.

Tasks

  • Run cargo fmt --all to reformat the entire tree to default rustfmt rules
  • Spot-check large clusters (e.g. src/lib/mlxcel-core/src/drafter/, src/lib/mlxcel-surgery/src/ops/) to confirm the reformatting did not change semantics
  • Decide if any rustfmt.toml overrides are warranted (the repo currently has no rustfmt.toml; default rules apply). If yes, add rustfmt.toml and re-run.
  • Add a fmt job to .github/workflows/ci.yml that runs cargo fmt --all -- --check on ubuntu-latest with the same path-filter and least-privilege permissions as the existing deny job
  • Update CONTRIBUTING.md and PULL_REQUEST_TEMPLATE.md so the local quality-gate list explicitly notes cargo fmt --all -- --check is now enforced (the templates already mention cargo fmt but the CI gate adds teeth)

Notes for the implementer

  • This PR will be reformat-only — no behavior changes. Keep it strictly mechanical.
  • Open as a single commit if possible (chore: reformat tree with cargo fmt), then a second commit adding the CI gate. Reviewers can use git diff -w to skim.
  • Once merged, future PRs will trip the CI gate immediately, so no further fmt drift can accumulate.

Refs

Activity

  1. added
    type:chore
    priority:medium
    status:ready
    on May 18, 2026
  2. added
    status:in-progress
    status:review
    and removed
    status:ready
    status:in-progress
    on May 18, 2026
  3. added a commit that references this issue on May 18, 2026
    a1b9eaa
  4. added
    status:done
    and removed
    status:review
    on May 18, 2026
  5. added this to the 0.1 milestone on Jun 5, 2026
  6. self-assigned this
    on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:mediumstatus:donetype:chore

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions