-
Notifications
You must be signed in to change notification settings - Fork 107
/
Makefile
37 lines (27 loc) · 835 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY : test-local test-local-file serve build-docs check-readme install-local lint format dev-setup
check-readme:
rm -rf dist build django_graphql_auth.egg-info
python setup.py sdist bdist_wheel
python -m twine check dist/*
install-local:
rm -rf dist build django_graphql_auth.egg-info
python setup.py sdist bdist_wheel
python -m pip install dist/django-graphql-auth-${v}.tar.gz
p ?= 38
d ?= 30
test:
tox -e py${p}-django${d} -- --cov-report term-missing --cov-report html
test-file:
tox -e py${p}-django${d} -- tests/test_${f}.py --cov-report html --cov-append
serve:
python docs/pre_build.py
mkdocs serve
build-docs:
python docs/pre_build.py
mkdocs build
format:
black --exclude "/migrations/" graphql_auth testproject setup.py quickstart tests
lint:
flake8 graphql_auth
dev-setup:
pip install -e ".[dev]"