google / vim-codefmt

Vim plugin for syntax-aware code formatting
Apache License 2.0
1.11k stars 114 forks source link

Add ruff as formatter for Python #238

Closed dbarnett closed 1 month ago

dbarnett commented 1 month ago

Fixes #223.

google-cla[bot] commented 1 month ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

dbarnett commented 1 month ago

@snu5mumr1k can you also approve the test workflows to run? https://github.com/google/vim-codefmt/actions/runs/10544889502

And then I think you'll need to merge it for me since I don't have write access to the repo anymore.

dbarnett commented 1 month ago

Hmm, FYI might be something brittle with how args are getting passed... after using this a while at one point I tried to format part of a file and it formatted every file in the repo in-place instead.

dbarnett commented 1 month ago

Figured it out, fixing that in #239.