Skip to content

Update to use ruff format - #1739

Closed
justinchuby wants to merge 9 commits into
mainfrom
justinchu/ruff-update
Closed

Update to use ruff format#1739
justinchuby wants to merge 9 commits into
mainfrom
justinchu/ruff-update

Conversation

@justinchuby

Copy link
Copy Markdown
Contributor

Describe your changes

Use ruff to replace black and isort for formatting because it is much faster and preserve much of the same styles. The same is done in ort/onnx/pytorch etc.

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.
  • Is this PR including examples changes? If yes, please remember to update example documentation in a follow-up PR.

(Optional) Issue link

@justinchuby
justinchuby requested a review from jambayk April 9, 2025 22:41

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lintrunner found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Comment thread olive/passes/pytorch/trt_utils.py Fixed
Comment thread olive/passes/pytorch/trt_utils.py Outdated
Comment thread olive/passes/pytorch/trt_utils.py Outdated
Comment thread pyproject.toml
@justinchuby
justinchuby enabled auto-merge (squash) April 9, 2025 23:18
auto-merge was automatically disabled April 10, 2025 00:19

Head branch was modified

@justinchuby
justinchuby enabled auto-merge (squash) April 10, 2025 00:20
auto-merge was automatically disabled April 10, 2025 00:25

Pull Request is not mergeable

@jambayk

jambayk commented Apr 10, 2025

Copy link
Copy Markdown
Contributor

will close and open again to try to reset the merge check

@jambayk jambayk closed this Apr 10, 2025
justinchuby added a commit that referenced this pull request Apr 10, 2025
Use ruff to replace black and isort for formatting because it is much
faster and preserve much of the same styles. The same is done in
ort/onnx/pytorch etc.

Replaces #1739
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.

3 participants