support/misc/gitlab-ci.yml.in: use python3 for flake8
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 12 Aug 2020 14:29:05 +0000 (16:29 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Fri, 14 Aug 2020 21:13:30 +0000 (23:13 +0200)
The pkg-stats script now uses Python3 only constructs (the "async"
keyword) and therefore fails to pass the Python2 flake8 test.

Let's use the Python3 flake8 instead.

Fixes:

  https://gitlab.com/buildroot.org/buildroot/-/jobs/681711009

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
support/misc/gitlab-ci.yml.in

index 7218ea027e5588405561fe89e42275044606b0f4..75ffaab8feacb71d033ae5d535fd7962b0f3e8af 100644 (file)
@@ -25,7 +25,7 @@ check-flake8:
         - find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
         - sort -u files.txt | tee files.processed
     script:
-        - python -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
+        - python3 -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
     after_script:
         - wc -l files.processed