2022-09-22 12:26:21 +03:00
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo "Please use \`make <target>' where <target> is one of"
|
|
|
|
@grep -E '^\.PHONY: [a-zA-Z_-]+ .*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = "(: |##)"}; {printf "\033[36m%-30s\033[0m %s\n", $$2, $$3}'
|
|
|
|
|
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]"
|
2023-05-02 20:12:49 +03:00
|
|
|
python -m pre_commit install
|
2019-04-26 15:14:28 +03:00
|
|
|
|
2022-09-22 12:26:21 +03:00
|
|
|
.PHONY: tests ## Run unit 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
|
|
|
|
|
2022-09-22 12:26:21 +03:00
|
|
|
.PHONY: format ## Format code
|
2019-04-30 12:02:23 +03:00
|
|
|
format:
|
2022-10-19 17:10:30 +03:00
|
|
|
black graphene_django examples setup.py
|
2019-04-30 12:02:23 +03:00
|
|
|
|
2022-09-22 12:26:21 +03:00
|
|
|
.PHONY: lint ## Lint code
|
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
|