Skip to content

Commit ee6f04d

Browse files
ci: Migrate from Flake8/Black/isort to Ruff
- Drop legacy Python quality tools from CI. - Implement Ruff-based validation workflow.
1 parent a04ed04 commit ee6f04d

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

.github/workflows/linting.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
11
name: Linting
2-
32
on:
43
push:
54
branches: [main]
65
pull_request:
76
branches: [main]
7+
workflow_dispatch:
88

99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
tool: [black, isort, flake8]
15-
max-parallel: 3
16-
fail-fast: false
14+
python-version: ["3.13"]
1715
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v4
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
2018

21-
- name: Set up Python with caching
22-
uses: actions/setup-python@v5
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
2321
with:
24-
python-version: '3.13'
25-
cache: 'pip'
26-
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install -r requirements/dev.txt
22+
python-version: ${{ matrix.python-version }}
3123

32-
- name: Run ${{ matrix.tool }}
33-
shell: bash
34-
env:
35-
TOOL: ${{ matrix.tool }}
36-
run: |
37-
$TOOL --version
38-
$TOOL . --check --verbose
24+
- name: Run Ruff via Action
25+
uses: astral-sh/ruff-action@v3.2.2
26+
with:
27+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)