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

infra: onboard to use ruff #34

Closed
wants to merge 46 commits into from
Closed

Conversation

AbeCoull
Copy link
Contributor

@AbeCoull AbeCoull commented Aug 27, 2024

Issue #, if available:

Description of changes:
Ruff is a good linter/formatter that Braket should be looking into. If has speed improvements, good support coverage, and is actively being adopted around the Python community. Additionally, this can drop the number of tools in our tool chain flake8, isort, black -> ruff.

In summary, some reasons:

  • It is fast - about 10x faster than flake8
  • Used by mane places, scipy, pypi, pandas, etc
  • has an autofix feature
  • Able to replace isort, black, and flake8 as one tool

Testing done:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AbeCoull AbeCoull requested a review from a team as a code owner August 27, 2024 16:51
@AbeCoull AbeCoull requested a review from kshyatt-aws August 27, 2024 19:04
Base automatically changed from ksh/speed to ksh/nobraket August 27, 2024 20:37
Base automatically changed from ksh/nobraket to main August 28, 2024 17:42
@kshyatt-aws
Copy link
Contributor

Nice! Is there any way we can rebase this to make the diff look less awful?

@AbeCoull AbeCoull closed this Sep 12, 2024
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.

2 participants