Skip to content

Commit a17f2a9

Browse files
committed
Use the official ruff GitHub action instead of custom code
1 parent 94ae4e3 commit a17f2a9

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

.github/workflows/ruff.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@ name: ruff linting
33
jobs:
44
ruff:
55
runs-on: ubuntu-latest
6-
container:
7-
image: archlinux/archlinux:latest
86
steps:
97
- uses: actions/checkout@v4
10-
- name: Prepare arch
11-
run: |
12-
pacman-key --init
13-
pacman --noconfirm -Sy archlinux-keyring
14-
pacman --noconfirm -Syyu
15-
pacman --noconfirm -Sy python-pip python-pyparted pkgconfig gcc
16-
- run: pip install --break-system-packages --upgrade pip
17-
- name: Install ruff
18-
run: pip install --break-system-packages .[dev]
19-
- run: python --version
20-
- run: ruff --version
21-
- name: Lint with ruff
22-
run: ruff check
8+
- uses: astral-sh/ruff-action@v3

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Home = "https://archlinux.org"
2727
Documentation = "https://archinstall.readthedocs.io/"
2828
Source = "https://github.com/archlinux/archinstall"
2929

30+
[dependency-groups]
31+
dev = [
32+
"ruff==0.8.5",
33+
]
34+
3035
[project.optional-dependencies]
3136
log = ["systemd_python==235"]
3237
dev = [

0 commit comments

Comments
 (0)