From 38d53dde58b49beaeb57e96d4f7013999ab797b8 Mon Sep 17 00:00:00 2001
From: Danil Kister <danil.kister@embl.de>
Date: Tue, 26 Mar 2024 17:05:12 +0100
Subject: [PATCH] Run `mypy` only for the current Python version.

---
 .gitlab-ci.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d8d4eca..ea10047 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
 image: python:3.11-slim-bookworm
 
-stages: ["code-analysis","test", "build"]
+stages: ["code-analysis", "test", "build"]
 
 before_script: ["pip --quiet install poetry && poetry install"]
 cache:
@@ -10,7 +10,10 @@ cache:
 Run type checks:
     stage: code-analysis
     script:
-      - poetry run mypy --install-types --non-interactive .
+      - |
+        poetry export -f requirements.txt --without-hashes --output requirements.txt
+        pip install mypy -r requirements.txt
+        mypy --install-types --non-interactive dma_client
 
 Run pylint:
     stage: code-analysis
-- 
GitLab