Prechádzať zdrojové kódy

.gitlab-ci.yml: use python3 for flake8 run

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard 4 rokov pred
rodič
commit
ec766fc712
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      .gitlab-ci.yml
  2. 1 1
      .gitlab-ci.yml.in

+ 1 - 1
.gitlab-ci.yml

@@ -28,7 +28,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
 

+ 1 - 1
.gitlab-ci.yml.in

@@ -28,7 +28,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