mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-24 10:33:59 +03:00
bd6d8d086d
* Fix tests * Add extra folders to make test command * Update snapshots * Add python 3.8 to test matrix * Add black command to makefile and black dependency to setup.py * Add lint command * Run format * Remove 3.8 from test matrix * Add Python 3.8 to test matrix * Update setup.py
28 lines
721 B
Makefile
28 lines
721 B
Makefile
.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}'
|
|
|
|
.PHONY: install-dev ## Install development dependencies
|
|
install-dev:
|
|
pip install -e ".[dev]"
|
|
|
|
test:
|
|
py.test graphene examples tests_asyncio
|
|
|
|
.PHONY: docs ## Generate docs
|
|
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
|
|
|
|
.PHONY: format
|
|
format:
|
|
black graphene examples setup.py tests_asyncio
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
flake8 graphene examples setup.py tests_asyncio
|