From 7ca23d00247c3e504d035da0de9007fc2d3f533a Mon Sep 17 00:00:00 2001
From: Rocco Meli <r.meli@bluemail.ch>
Date: Sat, 7 Dec 2024 22:38:47 +0100
Subject: [PATCH] ruff linting

---
 .github/workflows/linters.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml
index f8b24dcd091..08fc26d31d1 100644
--- a/.github/workflows/linters.yaml
+++ b/.github/workflows/linters.yaml
@@ -45,6 +45,21 @@ jobs:
         src: "./testsuite"
         version: "~= 24.0"
 
+  ruff:
+    if: "github.repository == 'MDAnalysis/mdanalysis'"
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v4
+      with:
+        fetch-depth: 0
+    - uses: astral-sh/ruff-action@v2
+      with:
+        args: check --select B006,B008
+        src: "package"
+    - uses: astral-sh/ruff-action@v2
+      with:
+        args: check --select B006,B008
+        src: "testsuite"
 
   pylint_check:
     if: "github.repository == 'MDAnalysis/mdanalysis'"