2016-06-14 11:39:45 +02:00
|
|
|
.PHONY: clean-pyc develop
|
2014-02-07 16:20:27 +01:00
|
|
|
|
|
|
|
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 {} +
|
|
|
|
|
2016-06-14 11:39:45 +02:00
|
|
|
develop: clean-pyc
|
|
|
|
pip install -e .[testing,docs]
|
|
|
|
npm install && npm run build
|
|
|
|
|
2014-02-07 16:20:27 +01:00
|
|
|
lint:
|
|
|
|
flake8 wagtail
|
2016-06-22 17:18:23 +02:00
|
|
|
isort --check-only --diff --recursive wagtail
|
2017-08-18 02:28:38 +02:00
|
|
|
npm run lint:css --silent
|
|
|
|
npm run lint:js --silent
|
2014-02-07 16:20:27 +01:00
|
|
|
|
|
|
|
test:
|
2014-02-13 13:44:49 +01:00
|
|
|
python runtests.py
|
2014-02-07 16:20:27 +01:00
|
|
|
|
|
|
|
test-all:
|
|
|
|
tox
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
coverage run --source wagtail setup.py
|
|
|
|
coverage report -m
|
|
|
|
coverage html
|
|
|
|
open htmlcov/index.html
|