From 5f44c10a38daaa004e9e73584e0ad4a1d9757c7d Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Mon, 16 Oct 2023 15:54:43 -0400 Subject: [PATCH] GitHub Actions: move Ruff output configuration to env The `--format=github` option was removed in https://github.com/astral-sh/ruff/pull/7984. --- .github/workflows/tox.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 13ffbbd1..b846677f 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -5,13 +5,21 @@ on: pull_request: branches: [master] jobs: - ruff: # https://beta.ruff.rs + ruff: # https://docs.astral.sh/ruff/editor-integrations/#github-actions runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - run: pip install --user "codespell[toml]" ruff - - run: codespell - - run: ruff --format=github . + - uses: actions/checkout@v3 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - run: | + python -m pip install --upgrade pip + pip install --user "codespell[toml]" ruff + - run: codespell + - run: ruff check . + env: + RUFF_FORMAT: github tox: needs: ruff