Skip to content
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

[Misc] Add python format script #357

Merged
merged 6 commits into from
Nov 8, 2024
Merged

[Misc] Add python format script #357

merged 6 commits into from
Nov 8, 2024

Conversation

brosoul
Copy link
Collaborator

@brosoul brosoul commented Nov 8, 2024

Pull Request Description

Add python format script, and add ruff lint and format rules.

Before merge, it need to rebase main branch and run the./scripts/format.sh to do lint and format.

Related Issues

Resolves: #351

Important: Before submitting, please complete the description above and review the checklist below.


Contribution Guidelines (Expand for Details)

We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:

Pull Request Title Format

Your PR title should start with one of these prefixes to indicate the nature of the change:

  • [Bug]: Corrections to existing functionality
  • [CI]: Changes to build process or CI pipeline
  • [Docs]: Updates or additions to documentation
  • [API]: Modifications to aibrix's API or interface
  • [CLI]: Changes or additions to the Command Line Interface
  • [Misc]: For changes not covered above (use sparingly)

Note: For changes spanning multiple categories, use multiple prefixes in order of importance.

Submission Checklist

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

@brosoul brosoul requested a review from Jeffwan November 8, 2024 15:43
Copy link
Collaborator

@Jeffwan Jeffwan left a comment

Choose a reason for hiding this comment

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

This is great! Super helpful

@brosoul brosoul force-pushed the linhui/python-format branch from f28089f to 3b08856 Compare November 8, 2024 23:06
@brosoul brosoul changed the title [DO NOT MERGE] Add python format script [Misc] Add python format script Nov 8, 2024
@brosoul
Copy link
Collaborator Author

brosoul commented Nov 8, 2024

Already rebase the main branch and format with new rules

Copy link
Collaborator

@Jeffwan Jeffwan left a comment

Choose a reason for hiding this comment

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

the change looks good to me

@Jeffwan Jeffwan merged commit 65b74ed into main Nov 8, 2024
9 checks passed
@Jeffwan Jeffwan deleted the linhui/python-format branch November 8, 2024 23:21
gangmuk pushed a commit that referenced this pull request Jan 25, 2025
* add ruff lint and format rules

* add format scripts

* doc: format

* add version check

* refact: tool version check

* format with new rules
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.

Add python code tool scripts include lint and format etc
2 participants