Skip to content

Commit

Permalink
CI: Run ruff as a style check
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 16, 2024
1 parent 18e39fb commit fd7e5cd
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,12 @@ permissions:
contents: read

jobs:
stable:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
python-version: [3]

style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install black/isort
run: python -m pip install black isort[colors]
- name: Check fMRIPrep
run: |
python -m black --diff --color --check fmriprep
python -m isort --diff --color --check fmriprep
- name: Check wrapper
run: |
python -m black --diff --color --check wrapper
python -m isort --diff --color --check wrapper
- run: pipx run ruff fmriprep
- run: pipx run ruff format --diff fmriprep

codespell:
name: Check for spelling errors
Expand Down

0 comments on commit fd7e5cd

Please sign in to comment.