summaryrefslogtreecommitdiffstats
path: root/util/cmake/Makefile
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2019-10-10 17:15:58 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-10-11 08:13:54 +0000
commitffb28b99303a7ba68d249c5da0e74587058dcde5 (patch)
tree8c9eb3d5d33e692e54e57e575849be419d1236c9 /util/cmake/Makefile
parent2d1aee85958c7a3ea7e322c06f882185e40aa1ac (diff)
cmake scripts: format with black
There is agreement to use black for formatting, run it and make flake8 happy with its output. Change-Id: I800d764a50cacba0eac1d8efb5c1dee0cf10a4ad Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'util/cmake/Makefile')
-rw-r--r--util/cmake/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/cmake/Makefile b/util/cmake/Makefile
index 67affa0e95..2243ad111e 100644
--- a/util/cmake/Makefile
+++ b/util/cmake/Makefile
@@ -1,9 +1,15 @@
-test: flake8 mypy pytest
+test: flake8 mypy pytest black_format_check
coverage:
pytest --cov .
+format:
+ black *.py --line-length 100
+
+black_format_check:
+ black *.py --line-length 100 --check
+
flake8:
flake8 *.py --ignore=E501,E266,E203,W503