Skip to content

Add ruff

Add ruff #3

Workflow file for this run

name: Lint
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
lint_format_ruff:

Check failure on line 10 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
runs-on: ubuntu-latest
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
src: "MDANSE/src"
- name: Analysing the code with Ruff
run: |
ruff format --check
lint_ruff:
runs-on: ubuntu-latest
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
src: "MDANSE/src"
- name: Analysing the code with Ruff
run: |
ruff check
lint-mdanse-gui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "MDANSE_GUI/Src"