From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 7/7] support/misc/gitlab-ci.yml.in: use python3 for flake8
Date: Wed, 12 Aug 2020 16:29:05 +0200 [thread overview]
Message-ID: <20200812142906.598755-8-thomas.petazzoni@bootlin.com> (raw)
In-Reply-To: <20200812142906.598755-1-thomas.petazzoni@bootlin.com>
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>
---
support/misc/gitlab-ci.yml.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/misc/gitlab-ci.yml.in b/support/misc/gitlab-ci.yml.in
index 7218ea027e..75ffaab8fe 100644
--- a/support/misc/gitlab-ci.yml.in
+++ b/support/misc/gitlab-ci.yml.in
@@ -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
--
2.26.2
next prev parent reply other threads:[~2020-08-12 14:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-12 14:28 [Buildroot] [PATCH 0/7] Switch to Python 3.x flake8 Thomas Petazzoni
2020-08-12 14:28 ` [Buildroot] [PATCH 1/7] utils/{check-package, checkpackagelib}: consistently use raw strings for re.compile Thomas Petazzoni
2020-08-13 22:09 ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 2/7] support/testing: " Thomas Petazzoni
2020-08-13 22:10 ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 3/7] support/testing/tests/core/test_timezone.py: fix indentation Thomas Petazzoni
2020-08-13 22:14 ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 4/7] utils/getdeveloperlib.py: use raw strings for re.compile/re.match Thomas Petazzoni
2020-08-13 22:14 ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 5/7] utils/scanpypi: use raw strings in re.compile/re.sub Thomas Petazzoni
2020-08-13 22:15 ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 6/7] support/docker: use python3-flake8 Thomas Petazzoni
2020-08-13 22:20 ` Titouan Christophe
2020-08-14 19:39 ` Thomas Petazzoni
2020-08-12 14:29 ` Thomas Petazzoni [this message]
2020-08-13 22:23 ` [Buildroot] [PATCH 7/7] support/misc/gitlab-ci.yml.in: use python3 for flake8 Titouan Christophe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200812142906.598755-8-thomas.petazzoni@bootlin.com \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.