From 0620d022909c5ae7ada018671370ceb27542567b Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 17 Oct 2023 12:49:26 +1100 Subject: [PATCH] .github/workflows/ruff.yml: Pin to 0.1.0. The `--format` flag was changed to `--output-format` in the recent update. Pin to this version to prevent further updates from breaking (e.g. through new rules or other changes). This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared --- .github/workflows/ruff.yml | 6 +++--- .pre-commit-config.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index b8e43dc7..0374d766 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -5,6 +5,6 @@ jobs: ruff: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - run: pip install --user ruff - - run: ruff --format=github . + - uses: actions/checkout@v4 + - run: pip install --user ruff==0.1.0 + - run: ruff check --output-format=github . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e017b86e..553b2738 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,6 @@ repos: entry: tools/codeformat.py -v -f language: python - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.280 + rev: v0.1.0 hooks: - id: ruff