Skip to content

Add ruff

Add ruff #1

Workflow file for this run

name: Lint
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
lint-mdanse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "MDANSE/Src"
lint-mdanse-gui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "MDANSE_GUI/Src"
lint_ruff:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Analysing the code with Ruff
run: |
ruff check MDANSE/Src