Makefile 548 B

123456789101112131415161718192021222324252627
  1. .PHONY: clean-pyc
  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. lint:
  12. flake8 wagtail
  13. test:
  14. python runtests.py
  15. test-all:
  16. tox
  17. coverage:
  18. coverage run --source wagtail setup.py
  19. coverage report -m
  20. coverage html
  21. open htmlcov/index.html