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:
|
2024-07-04 15:55:30 +03:00
|
|
|
PYTHONPATH=. pytest graphene_django --cov=graphene_django -vv
|
2019-04-30 12:02:23 +03:00
|
|
|
|
2022-09-22 12:26:21 +03:00
|
|
|
.PHONY: format ## Format code
|
2019-04-30 12:02:23 +03:00
|
|
|
format:
|
2023-10-25 11:33:00 +03:00
|
|
|
ruff format 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:
|
2023-08-09 20:48:42 +03:00
|
|
|
ruff 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
|