2018-10-13 21:27:57 +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-10 01:36:06 +03:00
|
|
|
.PHONY: install-dev ## Install development dependencies
|
|
|
|
install-dev:
|
2019-12-31 17:08:30 +03:00
|
|
|
pip install -e ".[dev]"
|
2019-06-10 01:36:06 +03:00
|
|
|
|
2022-09-15 15:53:21 +03:00
|
|
|
.PHONY: test ## Run tests
|
2019-06-10 01:36:06 +03:00
|
|
|
test:
|
2020-07-28 23:33:21 +03:00
|
|
|
py.test graphene examples
|
2019-06-10 01:36:06 +03:00
|
|
|
|
2018-10-13 21:27:57 +03:00
|
|
|
.PHONY: docs ## Generate docs
|
2019-06-10 01:36:06 +03:00
|
|
|
docs: install-dev
|
|
|
|
cd docs && make install && make html
|
|
|
|
|
|
|
|
.PHONY: docs-live ## Generate docs with live reloading
|
|
|
|
docs-live: install-dev
|
|
|
|
cd docs && make install && make livehtml
|
2019-12-31 17:08:30 +03:00
|
|
|
|
|
|
|
.PHONY: format
|
|
|
|
format:
|
2020-07-28 23:33:21 +03:00
|
|
|
black graphene examples setup.py
|
2019-12-31 17:08:30 +03:00
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
2020-07-28 23:33:21 +03:00
|
|
|
flake8 graphene examples setup.py
|