2016-06-14 09:39:45 +00:00
|
|
|
.PHONY: clean-pyc develop
|
2014-02-07 15:20:27 +00: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 09:39:45 +00:00
|
|
|
develop: clean-pyc
|
|
|
|
pip install -e .[testing,docs]
|
2019-03-21 20:41:14 +00:00
|
|
|
npm install --no-save && npm run build
|
2016-06-14 09:39:45 +00:00
|
|
|
|
2014-02-07 15:20:27 +00:00
|
|
|
lint:
|
2020-10-02 15:56:26 +00:00
|
|
|
flake8
|
2020-10-19 19:10:28 +00:00
|
|
|
isort --check-only --diff .
|
2019-05-09 09:10:14 +00:00
|
|
|
# Filter out known false positives, while preserving normal output and error codes.
|
|
|
|
# See https://github.com/motet-a/jinjalint/issues/18.
|
|
|
|
jinjalint --parse-only wagtail | grep -v 'welcome_page.html:6:70' | tee /dev/tty | wc -l | grep -q '0'
|
2017-08-18 00:28:38 +00:00
|
|
|
npm run lint:css --silent
|
|
|
|
npm run lint:js --silent
|
2020-10-19 19:10:28 +00:00
|
|
|
doc8 --ignore D001 docs
|
2014-02-07 15:20:27 +00:00
|
|
|
|
|
|
|
test:
|
2014-02-13 12:44:49 +00:00
|
|
|
python runtests.py
|
2014-02-07 15:20:27 +00:00
|
|
|
|
|
|
|
test-all:
|
|
|
|
tox
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
coverage run --source wagtail setup.py
|
|
|
|
coverage report -m
|
|
|
|
coverage html
|
|
|
|
open htmlcov/index.html
|