Skip to content

Commit 41f1e7d

Browse files
committed
CI: Run ruff as a style check
1 parent 6e55bf6 commit 41f1e7d

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/contrib.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,13 @@ permissions:
2222
contents: read
2323

2424
jobs:
25-
stable:
26-
runs-on: ${{ matrix.os }}
27-
strategy:
28-
matrix:
29-
os: ['ubuntu-latest']
30-
python-version: [3]
31-
25+
style:
26+
runs-on: ubuntu-latest
3227
steps:
3328
- uses: actions/checkout@v4
34-
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v5
36-
with:
37-
python-version: ${{ matrix.python-version }}
38-
- name: Display Python version
39-
run: python -c "import sys; print(sys.version)"
40-
- name: Install black/isort
41-
run: python -m pip install black isort[colors]
42-
- name: Check fMRIPrep
43-
run: |
44-
python -m black --diff --color --check fmriprep
45-
python -m isort --diff --color --check fmriprep
46-
- name: Check wrapper
47-
run: |
48-
python -m black --diff --color --check wrapper
49-
python -m isort --diff --color --check wrapper
50-
29+
- run: pipx run ruff fmriprep
30+
- run: pipx run ruff format --diff fmriprep
31+
5132
codespell:
5233
name: Check for spelling errors
5334
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)