diff --git a/ci-templates/python.yml b/ci-templates/python.yml
index ccf3676d487de8aed3418bd15753ac326be000c9..9192bd352db799927ad4216a3b7d58e3a50d0f53 100644
--- a/ci-templates/python.yml
+++ b/ci-templates/python.yml
@@ -2,7 +2,7 @@
   stage: build
   before_script: ${PYTHON_VERSION} -m pip -q install flake8
   script:
-    - find . -type f -executable -exec awk ' /^#!.*python/{print FILENAME}  {nextfile}' {} + > /tmp/python_files
+    - find . -type f -executable ! -name "*.yml" -exec awk ' /^#!.*python/{print FILENAME}  {nextfile}' {} + > /tmp/python_files
     - find . -type f -name "*.py" >> /tmp/python_files
     - sort /tmp/python_files | uniq | xargs ${PYTHON_VERSION} -m flake8 --max-line-length 120 --statistics --show-source