mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 02:54:06 +03:00
692540cc78
* Include setup.py in black formatting * Add new flake8 plugins and update errors to look for * Fix duplicate test name * Don't use mutable data structure * Install all dev dependencies for flake8 and black tox envs
30 lines
637 B
Makefile
30 lines
637 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:
|
|
black --exclude "/migrations/" graphene_django examples setup.py
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
flake8 graphene_django examples
|
|
|
|
.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
|