diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 96faf11c20c49300332e8dbd114b9e66aa6d7caf..7ee1a9b991faa9c9ba6f83e71df5369dcc5753e0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,7 @@ stages:
   - unit-tests
 linting:
   stage: linting
+  allow_failure: true
   script:
     - tox -e pep8
 unit_test:
diff --git a/tox.ini b/tox.ini
index 1a33625c2b9fa10ef723e62284a84ab542d1e969..72b80f0d3ab6f79a973372906d71f34b1d2e7e18 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,5 +18,5 @@ commands = stestr run {posargs}
 [testenv:pep8]
 commands =
 ;    doc8 doc/source/ README.rst
-    flake8 {posargs}
+    flake8 devices/{posargs}
     bandit -r devices -x test -n5 -ll # -s B320
\ No newline at end of file