Use the official ruff GitHub action instead of custom code (#3156)

This speeds up PR checks and reduces network I/O.
This commit is contained in:
correctmost 2025-02-01 06:04:28 +00:00 committed by GitHub
parent 94ae4e3dd7
commit fb3dd7da4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 15 deletions

View File

@ -3,20 +3,6 @@ name: ruff linting
jobs: jobs:
ruff: ruff:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: archlinux/archlinux:latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Prepare arch - uses: astral-sh/ruff-action@v3
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