Open RomeoAva opened 7 months ago
do you have ruff configured in your repo?
Ex: https://docs.astral.sh/ruff/configuration/
The action [ and running locally ] expects a configuration file to tell it how to behave.
The action currently specifies that this runs 'check'. I imagine format would be additional configuration to tell the action to do this. We could also add more shorthand options, should you wish to submit a PR.
Hi, I am a new user to Ruff (transitioning from Black). I am trying to setup this action on my repo to have the same functionalities I had with Black.
For example:
With this code block, the formatting is wrong, it should be
And this is indeed fixed once I do the command
ruff format app/main.py
.But when opening a pull request, ruff-action doesnt seem to mind that formatting mistake. How could I make it more strict in this sense to enforce the code formatting rules?
Here is my action:
Thank you for your help