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

(feat, python): move to ruff for formatting #4219

Merged
merged 21 commits into from
Aug 9, 2024
Merged

Conversation

dsinghvi
Copy link
Member

@dsinghvi dsinghvi commented Aug 6, 2024

This PR:

  1. All SourceFileImpls that are created in a project are no longer formatted via black. They are formatted via ruff at the end in one big go.
  2. Everytime SourceFileFactory.create_snippet() is called the user has to pass in should_format. Now we ensure that respect the skip_formatting flag.

This does not modify WriterImpl to format via ruff since there is work required to make that functionality accessible via python.

@dsinghvi dsinghvi marked this pull request as ready for review August 6, 2024 22:38
@dsinghvi dsinghvi force-pushed the dsinghvi/ruff-support branch from d0e75b1 to f10a091 Compare August 7, 2024 02:01
@armandobelardo armandobelardo merged commit 8a53d36 into main Aug 9, 2024
23 checks passed
@armandobelardo armandobelardo deleted the dsinghvi/ruff-support branch August 9, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants