mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
.gitlab-ci.yml: use python3 for flake8 run
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -28,7 +28,7 @@ check-flake8:
|
|||||||
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
||||||
- sort -u files.txt | tee files.processed
|
- sort -u files.txt | tee files.processed
|
||||||
script:
|
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:
|
after_script:
|
||||||
- wc -l files.processed
|
- wc -l files.processed
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ check-flake8:
|
|||||||
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
||||||
- sort -u files.txt | tee files.processed
|
- sort -u files.txt | tee files.processed
|
||||||
script:
|
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:
|
after_script:
|
||||||
- wc -l files.processed
|
- wc -l files.processed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user