From f48684cdb22888aa7f7cf7d416f8a76168f49b29 Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@liu.se>
Date: Tue, 9 May 2023 12:10:32 +0000
Subject: [PATCH] Add linting stage

---
 .gitlab-ci.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1d2bb62c..3d1206d5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,5 @@
 stages:
+ - linting
  - test
  - deploy
 
@@ -112,6 +113,13 @@ run-vhdl-tests:
       - cd b_asic/codegen/testbench
       - python test.py
 
+ruff:
+  stage: linting
+  image: registry.gitlab.com/pipeline-components/ruff:latest
+  before_script: []
+  script:
+    - ruff --format=gitlab .
+
 run-doc-test:
   variables:
     QT_API: pyside2
-- 
GitLab