diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-05-05 12:29:17 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-05 23:41:39 +0000 |
commit | 526043e053cb65b9fe9b54262e829710e060ae40 (patch) | |
tree | 092c8c77284bb5d2d7a0f8040a53baf2479d04b5 /util/build_with_clang.py | |
parent | 212ef472cc13372a0a70351f24fc0e1bbf29de8f (diff) | |
download | chrome-ec-526043e053cb65b9fe9b54262e829710e060ae40.tar.gz |
zephyr: zmake: Skip running flake8 on BUILD.py files during pre-upload
flake8 reports more errors than necessary on BUILD.py files because:
- They are out of the zmake tree, and therefore do not have the
correct .flake8 config file.
- flake8 is confused by undefined variables like "here" and
"register_project", which come from the execution context zmake
provides.
These are just config files anyway, running flake8 on them is likely
overkill. Turn that off.
BUG=none
BRANCH=none
TEST=for f in $(git ls-files); do
zephyr/zmake/pre-upload.sh "$(realpath "${f}")"
done
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ia6eae025ec560d3f6dbdc5c8a4ce50d7b9b94459
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3630476
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'util/build_with_clang.py')
0 files changed, 0 insertions, 0 deletions