2019-06-14 14:33:37 +03:00
|
|
|
.PHONY: dev-setup ## Install development dependencies
|
2019-04-26 15:14:28 +03:00
|
|
|
dev-setup:
|
2019-04-30 12:02:23 +03:00
|
|
|
pip install -e ".[dev]"
|
2019-04-26 15:14:28 +03:00
|
|
|
|
2019-06-14 14:33:37 +03:00
|
|
|
.PHONY: install-dev
|
|
|
|
install-dev: dev-setup # Alias install-dev -> dev-setup
|
|
|
|
|
|
|
|
.PHONY: tests
|
2019-04-26 15:14:28 +03:00
|
|
|
tests:
|
2019-04-30 12:02:23 +03:00
|
|
|
py.test graphene_django --cov=graphene_django -vv
|
|
|
|
|
2019-06-14 14:33:37 +03:00
|
|
|
.PHONY: test
|
|
|
|
test: tests # Alias test -> tests
|
|
|
|
|
|
|
|
.PHONY: format
|
2019-04-30 12:02:23 +03:00
|
|
|
format:
|
2019-06-11 06:54:30 +03:00
|
|
|
black --exclude "/migrations/" graphene_django examples
|
2019-04-30 12:02:23 +03:00
|
|
|
|
2019-06-14 14:33:37 +03:00
|
|
|
.PHONY: lint
|
2019-04-30 12:02:23 +03:00
|
|
|
lint:
|
2019-06-11 06:54:30 +03:00
|
|
|
flake8 graphene_django examples
|
2019-06-14 14:33:37 +03:00
|
|
|
|
|
|
|
.PHONY: docs ## Generate docs
|
|
|
|
docs: dev-setup
|
|
|
|
cd docs && make install && make html
|
|
|
|
|
|
|
|
.PHONY: docs-live ## Generate docs with live reloading
|
|
|
|
docs-live: dev-setup
|
|
|
|
cd docs && make install && make livehtml
|