-
Notifications
You must be signed in to change notification settings - Fork 487
Adopt ruff in CI #694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt ruff in CI #694
Conversation
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…avid-ci-ruff Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…avid-ci-ruff Signed-off-by: David Gardner <[email protected]>
…avid-ci-ruff Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…LEASE REVERT Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Ruff format offers very few formatting options, this is by design: https://docs.astral.sh/ruff/formatter/#configuration Specifically they chose compatibility with Black rather than YAPF This reverts commit 99d3668. Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…MERGE! PLEASE REVERT" This reverts commit 140c5dc. Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…avid-ci-ruff Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adopts ruff as the primary linting tool, replacing isort, flake8, and pylint in the CI/CD pipeline. The change modernizes the codebase's linting approach while retaining yapf for formatting due to ruff format's limited configuration options compared to yapf.
- Replace multiple linting tools (isort, flake8, pylint) with a single ruff configuration
- Update codebase to pass ruff checks by removing pylint-specific disable comments and fixing import order
- Modernize pyproject.toml configuration with simplified ruff settings
Reviewed Changes
Copilot reviewed 218 out of 219 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| pyproject.toml | Replaces pylint/flake8/isort configuration with streamlined ruff settings |
| Multiple test/source files | Removes pylint disable comments and fixes import ordering per ruff rules |
| nat.code-workspace | Updates VS Code workspace to use ruff instead of multiple linting extensions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
src/nat/profiler/inference_optimization/bottleneck_analysis/simple_stack_analysis.py
Outdated
Show resolved
Hide resolved
examples/advanced_agents/profiler_agent/src/nat_profiler_agent/tool/token_usage.py
Show resolved
Hide resolved
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…mple_stack_analysis.py Co-authored-by: Copilot <[email protected]> Signed-off-by: David Gardner <[email protected]>
…avid-ci-ruff Signed-off-by: David Gardner <[email protected]>
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Important Review skippedMore than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 107 files out of 214 files are above the max files limit of 100. Please upgrade to Pro plan to get higher limits. You can disable this status message by setting the ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
/merge |
ruff checkruff formatis explicitly focused on being a drop-in replacement for Black, offering very few configuration options ref: https://docs.astral.sh/ruff/formatter/#configurationruff check. Note previously not all of our code was passing with Pylint, so retaining Pylint would have likely required many of the same changes.By Submitting this PR I confirm: