mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
## Summary Use bash and `git diff` to determine which steps need to run. We previously used the `changed-files` github actions but using `git` directly seems simple enough. All credit for the bash magic goes to @zanieb and @geofft. All I did was replace the paths arguments. ## Test Plan * [Linter only change](https://github.com/astral-sh/ruff/pull/16800): See how the fuzzer and formatter steps, and the linter ecosystem checks are skipped * [Formatter only change](https://github.com/astral-sh/ruff/pull/16799): See how the fuzzer and linter ecosystem checks are skipped