From patchwork Sun Jun 3 09:08:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 924704 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UFLXKEcU"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40zC0n4LQ3z9s0x for ; Sun, 3 Jun 2018 19:08:41 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 29762885CC; Sun, 3 Jun 2018 09:08:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RuYzstiLWzt5; Sun, 3 Jun 2018 09:08:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E089F88589; Sun, 3 Jun 2018 09:08:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B34411C0000 for ; Sun, 3 Jun 2018 09:08:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B0900897B5 for ; Sun, 3 Jun 2018 09:08:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qba8842QiQ7d for ; Sun, 3 Jun 2018 09:08:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id D952589771 for ; Sun, 3 Jun 2018 09:08:29 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id x6-v6so3387418wmc.3 for ; Sun, 03 Jun 2018 02:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=xbafrzY7tzSRt8O/em5ZiG6nK8/iDw+tvXT4BP1sWsY=; b=UFLXKEcUdzX4Pac5gtTYdFoE6Qq/p02Zxj85yYSqPqtz/YfIx+5K4X+zaS7zZrnPkv hYZ6u0lVkuOpzSeeaHrzQm4jiroN7Jjp5BbymDrhy7X5tt3aXAwCdduMdzN+//MjBtR3 fTRxF32IXTgYwLnUttrIYx1vf9oV2Zf8+TANkdR/GgKe0wnb2f5z1fxNJClEaYDus3Es BQJt556W5yV+7hUWzg3s3kIPIJaFi1wXzjXQuOCEXIJ6oV5lJuOJK3I9TJlNXh8dyPB/ A1dz0mn8uvfQRvdyzrXJByrnKvqsMiHEyjG6tJBNFzUe+W27iy0g+LpfUkXx6cb094rR BDhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=xbafrzY7tzSRt8O/em5ZiG6nK8/iDw+tvXT4BP1sWsY=; b=IsU3bs9tj9I6AahwM33sZ/dbje04syqxXXKX+jjuwp2zzTcncjyLOcpT9pTDas6Z/G wvjc/gtoXuZozoO14h6XfkaERyxG6Ig2RVUbzGg87Uk53+vJQQij3s+SLcimSZ1ZCj18 tlpK4nl8VPZKNQAOPzBGU0TCz9VL4bWfi44HA95oUw8d5cNvHf1gvL3uP89gZDyBZXPO vidrisj4utRcAKisBH7QqhFxSTQ/giJqUGfOqxv1wKx58WYDIZKyCAleu3rs+Q21g5kg wjM5xiAjEL0XCCDvxiPtD0sYbor5/tcdviSBNN6KQMiy1QnMVz20pKaiErKoDRHybAmb ZG0Q== X-Gm-Message-State: ALKqPwdOICJBS23rjOACMhqCAij/oh/61n0thxYPYfPETjUIs6A1Yifs uYaJe2etBfKrYD+72Hqhb5BlgQ== X-Google-Smtp-Source: ADUXVKLPt+h1PYYFbM7jD5JpG+vJE/1B9Wwd7s4rNm9h3UZPtQNKQJkgzFUGDPrHtkGVHRChhHGK3w== X-Received: by 2002:a1c:42d7:: with SMTP id k84-v6mr6309602wmi.159.1528016908209; Sun, 03 Jun 2018 02:08:28 -0700 (PDT) Received: from scaer.bzh.lan (2a01cb0886107300d539cb71123e92f9.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:d539:cb71:123e:92f9]) by smtp.gmail.com with ESMTPSA id q17-v6sm4476704wrs.5.2018.06.03.02.08.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Jun 2018 02:08:27 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 3 Jun 2018 11:08:22 +0200 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 5/5] support/docker: update to python3-flavoured flake8 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E. MORIN" , Ricardo Martincoski MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We are currently using python2-flavoured flake8, but the way to the future is with python3. Besides, the python3-flavoured flake8 catches more problems. So, we leap into the future and switch to using python3's flake8. Future, here we come! ;-) Signed-off-by: "Yann E. MORIN" Cc: Ricardo Martincoski --- .gitlab-ci.yml | 2 +- .gitlab-ci.yml.in | 2 +- support/docker/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e80491cdde..4e111b48bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,7 +37,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 $(cat files.processed) + - python3 -m flake8 --statistics --count $(cat files.processed) after_script: - wc -l files.processed diff --git a/.gitlab-ci.yml.in b/.gitlab-ci.yml.in index fb2650c5ce..bfe1eeccec 100644 --- a/.gitlab-ci.yml.in +++ b/.gitlab-ci.yml.in @@ -37,7 +37,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 $(cat files.processed) + - python3 -m flake8 --statistics --count $(cat files.processed) after_script: - wc -l files.processed diff --git a/support/docker/Dockerfile b/support/docker/Dockerfile index 8d40aeecdf..57c9ef78fa 100644 --- a/support/docker/Dockerfile +++ b/support/docker/Dockerfile @@ -29,13 +29,13 @@ RUN apt-get install -y --no-install-recommends \ cpio \ cvs \ file \ + flake8 \ g++-multilib \ git \ libc6:i386 \ libncurses5-dev \ locales \ mercurial \ - python-flake8 \ python-nose2 \ python-pexpect \ qemu-system-arm \