0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
wagtail/Makefile
Matt Westcott 3134ffa119 Recommend npm install --no-save when setting up node toolchain (#5161)
Running `npm install` without `--no-save` can introduce spurious changes to package-lock.json due to differences in platform / node version, and these have been known to accidentally sneak into people's PRs. `npm install` without `--no-save` should only be used when actively updating node dependencies in package.json.
2019-03-21 20:41:14 +00:00

35 lines
748 B
Makefile

.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 --no-save && npm run build
lint:
flake8 wagtail
isort --check-only --diff --recursive wagtail
npm run lint:css --silent
npm run lint:js --silent
test:
python runtests.py
test-all:
tox
coverage:
coverage run --source wagtail setup.py
coverage report -m
coverage html
open htmlcov/index.html