diff options
author | Kelley Spoon <kelley.spoon@linaro.org> | 2020-12-18 09:17:38 -0600 |
---|---|---|
committer | Kelley Spoon <kelley.spoon@linaro.org> | 2020-12-18 09:17:38 -0600 |
commit | 7a97ed47911f462bab9eb8eac0f457ff9576de88 (patch) | |
tree | 9798194710153fb8507d6d71b1927e562215e0c0 | |
parent | 8353e5fd96369e80b0e5ee575d053d81e340409b (diff) |
unit-test: fix mutually exclusive test failure
flake8 considers a linebreak before a binary operator
to be an error (W503), but it also considers a
linebreak after a binary operator to be an error (W504).
Since there's no way to write the code that can satisfy
both mutually exclusive tests AND fit the line length
requirement, let's ignore W503.
Change-Id: Id14f3736dd9898da1b0304ae44dbef50b63326a9
-rwxr-xr-x | unit-test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit-test.sh b/unit-test.sh index 4577e0f..26ba51e 100755 --- a/unit-test.sh +++ b/unit-test.sh @@ -36,7 +36,7 @@ if echo $VENV_DIR | grep $HERE ; then # make sure we don't run tests on the venv if its in our source tree FLAKE_EXCLUDE="$VENV_DIR,$FLAKE_EXCLUDE" fi -flake8 --ignore=E402 --show-source --exclude=$FLAKE_EXCLUDE ./ +flake8 --ignore=E402,W503 --show-source --exclude=$FLAKE_EXCLUDE ./ echo echo "== Running test suite..." |