diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 72b4381aebcaf5edd16c10c479df6ca908128ec6..9bb5adb6ed4fedf57694d6ec7843942c46296269 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,18 +40,18 @@ code_style:
   tags: [ docker ]
   stage: code_style
   script:
-    - pycodestyle --count ./
+    - make style
   allow_failure: true
 
+# pylint tests for pycaosdb
 pylint:
   tags: [ docker ]
   stage: linting
   script:
-    - pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common
+    - make lint
   allow_failure: true
 
-
-# pylint tests for pycaosdb
+# run tests
 test:
   tags: [ docker ]
   stage: test
diff --git a/Makefile b/Makefile
index 4bc3459d209936c17a445c64e77180d9559e4653..192337853d8db8812e14f75fca8986006de82180 100644
--- a/Makefile
+++ b/Makefile
@@ -31,3 +31,14 @@ doc:
 
 install:
 	@echo "Not implemented yet, use pip for installation."
+
+check: style lint
+.PHONY: check
+
+style:
+	pycodestyle --count examples src unittests
+.PHONY: style
+
+lint:
+	pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common
+.PHONY: lint