2
0

Makefile 738 B

12345678910111213141516171819202122232425262728293031323334
  1. .PHONY: clean-pyc develop
  2. help:
  3. @echo "clean-pyc - remove Python file artifacts"
  4. @echo "lint - check style with flake8"
  5. @echo "test - run tests quickly with the default Python"
  6. @echo "coverage - check code coverage quickly with the default Python"
  7. clean-pyc:
  8. find . -name '*.pyc' -exec rm -f {} +
  9. find . -name '*.pyo' -exec rm -f {} +
  10. find . -name '*~' -exec rm -f {} +
  11. develop: clean-pyc
  12. pip install -e .[testing,docs]
  13. npm install && npm run build
  14. lint:
  15. flake8 wagtail
  16. isort --check-only --diff --recursive wagtail
  17. npm run lint:css --silent
  18. npm run lint:js --silent
  19. test:
  20. python runtests.py
  21. test-all:
  22. tox
  23. coverage:
  24. coverage run --source wagtail setup.py
  25. coverage report -m
  26. coverage html
  27. open htmlcov/index.html