From fbeb94222c162680db318a3225993532a6f3367f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bouysset?= Date: Sun, 23 Jun 2024 02:13:05 +0100 Subject: [PATCH] add ruff to CI checks --- .../workflows/{formatting.yml => formatting_linting.yml} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename .github/workflows/{formatting.yml => formatting_linting.yml} (67%) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting_linting.yml similarity index 67% rename from .github/workflows/formatting.yml rename to .github/workflows/formatting_linting.yml index 58e4e3d..af3d722 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting_linting.yml @@ -1,4 +1,4 @@ -name: "Black" +name: "Ruff/Black" on: push: @@ -19,6 +19,12 @@ jobs: uses: actions/checkout@v4 - name: Code formatting + uses: chartboost/ruff-action@v1 + with: + args: "check --preview" + + - name: Notebook formatting uses: psf/black@stable with: + src: "docs/notebooks/" jupyter: true \ No newline at end of file