graphene-django/Makefile
Ülgen Sarıkavak 8383bdc5aa
pre-commit & black (#1340)
* Call black via pre-commit
* Apply black
2022-08-19 09:15:44 +03:00

26 lines
546 B
Makefile

.PHONY: dev-setup ## Install development dependencies
dev-setup:
pip install -e ".[dev]"
.PHONY: install-dev
install-dev: dev-setup # Alias install-dev -> dev-setup
.PHONY: tests
tests:
py.test graphene_django --cov=graphene_django -vv
.PHONY: test
test: tests # Alias test -> tests
.PHONY: format
format:
pre-commit run --all-files
.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