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:
parent
94ae4e3dd7
commit
fb3dd7da4c
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue