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

Official Air GitHub Actions for formatting #268

Open
DavisVaughan opened this issue Feb 27, 2025 · 0 comments
Open

Official Air GitHub Actions for formatting #268

DavisVaughan opened this issue Feb 27, 2025 · 0 comments

Comments

@DavisVaughan
Copy link
Collaborator

The Shiny one has a lot of the customization I'd want
https://github.com/rstudio/shiny-workflows/blob/main/format-r-code/action.yaml

  • Pinning a version
  • Formatting followed by committing if any files were formatted
  • Check mode that errors rather than committing
  • Default formats . but provide some way to customize the path(s), or maybe a way to customize the working directory

I'm not sure if we want it to be a composite workflow like the Shiny one or if we want to, say, always make it run on ubuntu-latest.

This probably needs to be its own repo so we can use tags to version the workflow

The ruff one is fairly sophisticated, and is not a composite workflow
https://github.com/astral-sh/ruff-action/tree/main

The ruff one even lives in the official marketplace
https://github.com/marketplace/actions/ruff-action

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

No branches or pull requests

1 participant