Imported Upstream version 2.73.3
[platform/upstream/glib.git] / .gitlab-ci / run-flake8.sh
1 #!/bin/bash
2
3 set -e
4
5 # Disable formatting warnings in flake8, as we use `black` to handle that.
6 formatting_warnings=E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5
7
8 # shellcheck disable=SC2046
9 flake8 --max-line-length=88 --ignore="$formatting_warnings" $(git ls-files '*.py')