You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: reformat tree with cargo fmt and add fmt to CI gate #4
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 skippedcargo 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.
Activity
chore: add OSS security automation and community health files (#3)
chore: reformat tree with cargo fmt and add fmt to CI gate (#13)
chore: add OSS security automation and community health files (lablup#3)
chore: reformat tree with cargo fmt and add fmt to CI gate (lablup#13)