From 4e73683a1706aaeb5d858371e1c3bd8280102f23 Mon Sep 17 00:00:00 2001 From: Jon Azpiazu <jon.azpiazu@tecnalia.com> Date: Thu, 7 Nov 2024 13:02:45 +0100 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Iñigo Moreno i Caireta <inigo.moreno@tecnalia.com> --- ci-templates/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-templates/python.yml b/ci-templates/python.yml index 9192bd3..3fc57e7 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 ! -name "*.yml" -exec awk ' /^#!.*python/{print FILENAME} {nextfile}' {} + > /tmp/python_files + - find . -type f -executable ! -name "*.*" -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 -- GitLab