diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2020-11-17 15:48:28 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2020-11-17 15:50:07 +0000 |
commit | e187d836ade9c368b34a2ad16491d93d35520751 (patch) | |
tree | 76ddb884ea5eb6d6715624a232452af6f96b68d9 | |
parent | 905b22a17eee2b0b4648f59e615360ca52d3b603 (diff) | |
download | glib-e187d836ade9c368b34a2ad16491d93d35520751.tar.gz |
ci: Disable formatting warnings in flake8
We use `black` to handle formatting of Python code.
From https://stackoverflow.com/questions/59241007/flake8-disable-all-formatting-rules
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rwxr-xr-x | .gitlab-ci/run-flake8.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci/run-flake8.sh b/.gitlab-ci/run-flake8.sh index 2a7628303..5675a01ef 100755 --- a/.gitlab-ci/run-flake8.sh +++ b/.gitlab-ci/run-flake8.sh @@ -2,5 +2,8 @@ set -e +# Disable formatting warnings in flake8, as we use `black` to handle that. +formatting_warnings=E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5 + # shellcheck disable=SC2046 -flake8 --max-line-length=88 $(git ls-files '*.py') +flake8 --max-line-length=88 --ignore="$formatting_warnings" $(git ls-files '*.py') |