Skip to content

Switch to Python 3.x flake8

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7utils/{check-package, checkpackagelib}: consistently use raw strings for re.compileutils/check-package utils/checkpackagelib/lib_config.py utils/checkpackagelib/lib_mk.py +1 more+52 -521 reply
2/7support/testing: consistently use raw strings for re.compilesupport/testing/infra/__init__.py+2 -21 reply
3/7support/testing/tests/core/test_timezone.py: fix indentationsupport/testing/tests/core/test_timezone.py+4 -41 reply
4/7utils/getdeveloperlib.py: use raw strings for re.compile/re.matchutils/getdeveloperlib.py+5 -51 reply
5/7utils/scanpypi: use raw strings in re.compile/re.subutils/scanpypi+4 -41 reply
6/7support/docker: use python3-flake8support/docker/Dockerfile+1 -11 reply
6/7support/docker: use python3-flake8+0 -00 replies
7/7support/misc/gitlab-ci.yml.in: use python3 for flake8support/misc/gitlab-ci.yml.in+1 -11 reply

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchTitouan Christophe
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/7] Switch to Python 3.x flake8

Hello,

Now that we are using the "async" keyword and related Python 3.x functionality in support/scripts/pkg-stats, our check-flake8 Gitlab CI job no longer passes:

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

It borks on the "async" keyword. The purpose of this series is to switch to using the Python 3.x flake8.

Patches 1 to 5 fix existing issues in our Python codebase which were accepted by the Python 2.x flake8, but not the Python 3.x flake8.

Patch 6 changes our Dockerfile to install python3-flake8 instead of python-flake8, and patch 7 changes our Gitlab CI job to use the Python3 flake8 checker.

Once patch 6 is applied, someone will have to rebuild and upload the Docker image that Buildroot's Gitlab CI is using, and re-adjust patch 7 before applying it to use the new Docker image.

Thanks,

Thomas

Thomas Petazzoni (7):
utils/{check-package,checkpackagelib}: consistently use raw strings
for re.compile
support/testing: consistently use raw strings for re.compile support/testing/tests/core/test_timezone.py: fix indentation utils/getdeveloperlib.py: use raw strings for re.compile/re.match utils/scanpypi: use raw strings in re.compile/re.sub support/docker: use python3-flake8 support/misc/gitlab-ci.yml.in: use python3 for flake8

 support/docker/Dockerfile                   |  2 +-
 support/misc/gitlab-ci.yml.in               |  2 +-
 support/testing/infra/__init__.py           |  4 +-
 support/testing/tests/core/test_timezone.py |  8 +--
 utils/check-package                         | 34 ++++++------
 utils/checkpackagelib/lib_config.py         |  4 +-
 utils/checkpackagelib/lib_mk.py             | 60 ++++++++++-----------
 utils/checkpackagelib/lib_patch.py          |  6 +--
 utils/getdeveloperlib.py                    | 10 ++--
 utils/scanpypi                              |  8 +--
 10 files changed, 69 insertions(+), 69 deletions(-)
Signature · 1 line
2.26.2