Makefile 685 B

1234567891011121314151617181920212223242526272829303132
  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. test:
  18. python runtests.py
  19. test-all:
  20. tox
  21. coverage:
  22. coverage run --source wagtail setup.py
  23. coverage report -m
  24. coverage html
  25. open htmlcov/index.html