diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0ff4a9efe1599faa9a2b96bb3d5039fcfa70d061..5ca94b9de6b46f7e3554729f79987956de33a3ab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,8 +52,8 @@ lint-test-job:   # This job also runs in the test stage.
   script:
     - pip install flake8 pytest
     - ls
-    - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude='venv'
-    - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics   --exclude='venv'
+    - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude='venv/'
+    - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics   --exclude='venv/'
 
 deploy-job:      # This job runs in the deploy stage.
   stage: deploy  # It only runs when *both* jobs in the test stage complete successfully.