Draft
Conversation
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
🤖 AI PR Review Summary\n\nAdds a GitHub Actions workflow to automatically format Python files on every push, excluding commits made by the automation bot itself. The workflow installs autopep8, formats modified Python files, and commits any changes back to the repository. Risks include potential conflicts or unintended formatting changes that may disrupt ongoing work. The design relies on a GitHub App token for authentication and uses a simple diff-based file filter, which may miss edge cases such as renamed or deleted files. |
🤖 AI PR Review Summary\n\nThis PR updates the CLA workflow to expand the allowlist for automated users and introduces a new GitHub Actions workflow for automatic Python code formatting using autopep8. The formatting workflow runs on all branches except when triggered by the mlc-automations user, installs dependencies, formats changed Python files, and commits any changes back to the repo. Risks include potential unintended commits if formatting changes are applied unexpectedly and possible permission issues with the GitHub token. The design is straightforward but could benefit from additional safeguards and clearer filtering of files to format. |
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.
✅ PR Checklist
dev📌 Note: PRs must be raised against
dev. Do not commit directly tomain.✅ Testing & CI
📚 Documentation
📁 File Hygiene & Output Handling
🛡️ Safety & Security
🙌 Contribution Hygiene
Fixes #orCloses #.