You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would prove very useful to have a single hook that runs both check and format commands chained. That is not only for performance reasons but also for keeping the hook configs in sync and avoiding calling them in the wrong order.
At this moment we are using a hack like below:
- repo: https://github.com/astral-sh/ruff-pre-commitrev: v0.9.9hooks:
- id: ruffentry: sh -c 'ruff check --fix --force-exclude && ruff format --force-exclude'
Once astral-sh/ruff#8232 is implemented, we can replace the shell command with a single ruff call.