Switch to Python 3.x flake8
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | utils/{check-package, checkpackagelib}: consistently use raw strings for re.compileutils/ utils/ utils/ +1 more | +52 | 1 reply | |
| 2/7 | support/testing: consistently use raw strings for re.compilesupport/ | +2 | 1 reply | |
| 3/7 | support/testing/tests/core/test_timezone.py: fix indentationsupport/ | +4 | 1 reply | |
| 4/7 | utils/getdeveloperlib.py: use raw strings for re.compile/re.matchutils/ | +5 | 1 reply | |
| 5/7 | utils/scanpypi: use raw strings in re.compile/re.subutils/ | +4 | 1 reply | |
| 6/7 | support/docker: use python3-flake8support/ | +1 | 1 reply | |
| 6/7 | support/docker: use python3-flake8 | +0 | 0 replies | |
| 7/7 | support/misc/gitlab-ci.yml.in: use python3 for flake8support/ | +1 | 1 reply |
Reviews trailers per patch
6 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Titouan Christophe |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | |
| 6/7 | |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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