Skip to content

ci: Enable cargo fmt check in GitHub Actions#89

Merged
ssmichael1 merged 2 commits into
ssmichael1:mainfrom
parker-research:ci-check-fmt
May 17, 2026
Merged

ci: Enable cargo fmt check in GitHub Actions#89
ssmichael1 merged 2 commits into
ssmichael1:mainfrom
parker-research:ci-check-fmt

Conversation

@parker-research
Copy link
Copy Markdown
Contributor

This project would be a bit nicer to maintain if all the files were properly autoformatted with cargo.

This PR adds a cargo fmt check to the CI pipeline. It also runs the autoformatter to ensure this check passes.

Feel free to pick off the autoformat commit and re-run it yourself, if auditing the chance is challenging/too much.

@ssmichael1
Copy link
Copy Markdown
Owner

I like this idea, though I may adjust how it is included in the CI pipeline.

ssmichael1 and others added 2 commits May 17, 2026 16:10
Mechanical reformatting only — no functional changes. This commit is
listed in .git-blame-ignore-revs so git blame skips it.

Originally proposed in ssmichael1#89 by @parker-research.

Co-Authored-By: Parker L <parker-research@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a dedicated `lint` job that runs `cargo fmt --all -- --check` on
ubuntu, so a formatting failure surfaces before the multi-OS build
matrix kicks off.

Also adds .git-blame-ignore-revs listing the workspace-wide fmt commit,
so `git blame` (and GitHub's web blame) skip past mechanical
reformatting and point at the substantive prior author.

Closes ssmichael1#87 follow-up. Builds on ssmichael1#89 by @parker-research.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ssmichael1 ssmichael1 merged commit 8182dad into ssmichael1:main May 17, 2026
10 checks passed
@ssmichael1
Copy link
Copy Markdown
Owner

Modified. rust-fmt runs in ubuntu prior to builds across OSs. Bombs out if formatting is not correct prior to change.

Thanks to @parker-research for recommending this change and doing the initial work. Good suggestions.

@parker-research
Copy link
Copy Markdown
Contributor Author

Thanks a lot, happy to see it!

@parker-research parker-research deleted the ci-check-fmt branch May 17, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants