Repository navigation
[mojo-format] Add support for check subcommand - #6938
Closed
AmrDeveloper wants to merge 1 commit into
Closed
AmrDeveloper wants to merge 1 commit into
AmrDeveloper wants to merge 1 commit into
Conversation
Contributor
|
Hey @AmrDeveloper, love to see excitement for contributing to Mojo! Unfortunately we're not ready to accept contributions in the I'm going to close this PR right now but please do keep checking back 🙂 |
Author
|
Hey @alisterburt Can we reopen the PR 🤔, I see in the forum that contributions is ready to be accepted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
Fixes #6885
Type of change
Motivation
Introduce a check subcommand without mutating the files, which can be easily used for the CI jobs.
What changed
Added a subcommand to the format command to perform a check only for the format without mutating the files, the actual change is to propagate the check action to mblack
Testing
Add a lit test that is expected to fail with unformatted Mojo code.
Checklist
agreed-upon, or this is a trivial fix that does not need prior
approval
smaller PRs where possible (see
pull request sizes)
./bazelw run formatto format my changesAssisted-by:trailer in my commit message or this PR description (seeAI Tool Use Policy)