wagtail/Makefile

35 wiersze
720 B
Makefile
Czysty Zwykły widok Historia

.PHONY: clean-pyc develop
help:
@echo "clean-pyc - remove Python file artifacts"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with the default Python"
@echo "coverage - check code coverage quickly with the default Python"
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
develop: clean-pyc
pip install -e .[testing,docs]
npm install && npm run build
lint:
flake8 wagtail
2016-06-22 15:18:23 +00:00
isort --check-only --diff --recursive wagtail
npm run lint:css
npm run lint:js
test:
python runtests.py
test-all:
tox
coverage:
coverage run --source wagtail setup.py
coverage report -m
coverage html
open htmlcov/index.html