Use the ruff version specified in pyproject.toml for CI checks (#2960)

Previously, the ruff system package was used, which could lag
behind the PyPI version.
This commit is contained in:
correctmost 2024-11-30 03:58:10 -05:00 committed by GitHub
parent 80eebcff4f
commit 45bc9c2e65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,16 @@ jobs:
image: archlinux/archlinux:latest
steps:
- uses: actions/checkout@v4
- run: pacman --noconfirm -Syu ruff
- name: Prepare arch
run: |
pacman-key --init
pacman --noconfirm -Sy archlinux-keyring
pacman --noconfirm -Syyu
pacman --noconfirm -Sy python-pip python-pyparted pkgconfig gcc
- run: pip install --break-system-packages --upgrade pip
- name: Install ruff
run: pip install --break-system-packages .[dev]
- run: python --version
- run: ruff --version
- name: Lint with ruff
run: ruff check