vprusso/toqito

Configure ruff action

Opened this issue · 1 comments

We want to allow the following to use the linter and formatted options allowed by ruff. Right now, this only checks for the linter rules.

Option 1: use ruff format . to let the github action make changes in the PR directly
Option 2: use ruff format --check to fail the workflow if there are some changes to be made by the formatted

#510 (comment)

In addition, ruff formatter configuration should be standardized. Even though we allow line-length to be <=120,
the following lines are changed by ruff as shown in the second screenshot.

image

image