From e7674d0db62d73b469d2d8dcadb8c016680cbd3f Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Wed, 2 Mar 2022 14:02:58 +0100
Subject: [PATCH] MAINT: Makefile has `style` target now.

---
 .gitlab-ci.yml | 2 +-
 Makefile       | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f620aeff..75520091 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -107,7 +107,7 @@ style:
   stage: style
   image: $CI_REGISTRY_IMAGE
   script:
-      - autopep8 -ar --diff --exit-code --exclude swagger_client .
+      - make style
   allow_failure: true
 
 unittest:
diff --git a/Makefile b/Makefile
index 7609444b..52ac0445 100644
--- a/Makefile
+++ b/Makefile
@@ -34,3 +34,7 @@ install:
 
 unittest:
 	pytest-3 unittests
+
+style:
+	autopep8 -ar --diff --exit-code --exclude swagger_client .
+.PHONY: style
-- 
GitLab