Makefile 788 B

1234567891011121314151617181920212223242526272829303132333435
  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 --no-save && npm run build
  14. lint:
  15. flake8 wagtail
  16. isort --check-only --diff --recursive wagtail
  17. jinjalint --parse-only wagtail || true
  18. npm run lint:css --silent
  19. npm run lint:js --silent
  20. test:
  21. python runtests.py
  22. test-all:
  23. tox
  24. coverage:
  25. coverage run --source wagtail setup.py
  26. coverage report -m
  27. coverage html
  28. open htmlcov/index.html