ffb28b9930
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>
21 lines
265 B
Makefile
21 lines
265 B
Makefile
|
|
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
|
|
|
|
pytest:
|
|
pytest
|
|
|
|
mypy:
|
|
mypy --pretty *.py
|