mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
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>
This commit is contained in:
parent
905b22a17e
commit
e187d836ad
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user