Makefile
raw| 1 | .PHONY: doc server |
| 2 | doc: |
| 3 | $(MAKE) -C doc html |
| 4 | |
| 5 | clean: |
| 6 | $(MAKE) -C doc clean |
| 7 | |
| 8 | serve: |
| 9 | sphinx-autobuild doc doc/_build/html |
| 10 | |
| 11 | check: black pylint |
| 12 | |
| 13 | black: |
| 14 | LC_ALL=C.UTF-8 LANG=C.UTF-8 black --check --diff . |
| 15 | |
| 16 | pylint: |
| 17 | pylint --disable=all --enable=elif,exceptions,stdlib,imports,variables,string,string_constant,logging,newstyle,classes --disable=C0411,C0412,E0401,E0611,E0202,R0201,R0401,W --enable=E0102,R1707,R1714,R1715,R1716,W0235,W0404,W0611,W0612,W0622,W0631,W0632,W0641,W0642,W1401,W1402,W1403,W1505 lavacli tests |
| 18 | |
| 19 | test: |
| 20 | python3 -m pytest -v --junitxml=lavacli.xml tests |
| 21 | |
| 22 | coverage: |
| 23 | python3 -m pytest -v --cov --cov-fail-under=70 --cov-report html --cov-report term-missing --cov-report=xml:coverage.xml --junitxml=report.xml tests |