generated from quillcraftsman/open-source-checklist
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·64 lines (47 loc) · 1.48 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
server:
python manage.py runserver
makemigrations:
python manage.py makemigrations
test:
python manage.py test
dry-test:
python manage.py test --tag="dry"
django-test:
python manage.py test --tag="django"
coverage:
coverage run --source='.' manage.py test
coverage html --omit=settings/asgi.py,settings/wsgi.py,manage.py,setup.py,package.py
coverage report --omit=settings/asgi.py,settings/wsgi.py,manage.py,setup.py,package.py --fail-under=100
django-coverage:
coverage run --source='.' manage.py test --tag="django"
coverage html --omit=settings/asgi.py,settings/wsgi.py,manage.py,setup.py,package.py,demo/tests/*,dry_tests/*,quickstart/*
coverage report --omit=settings/asgi.py,settings/wsgi.py,manage.py,setup.py,package.py,demo/tests/*,dry_tests/*,quickstart/* --fail-under=100
dry-coverage:
coverage run --source='.' manage.py test --tag="dry"
coverage html --omit=settings/asgi.py,settings/wsgi.py,manage.py,setup.py,package.py,demo/tests/*
coverage report --omit=settings/asgi.py,settings/wsgi.py,manage.py,setup.py,package.py,demo/tests/* --fail-under=100
yamllint:
yamllint -d relaxed .
black:
black .
build:
python -m build
install:
make build
pip install dist/*.whl
uninstall:
pip uninstall django-dry-tests -y
rm -rf dist
rm -rf django_dry_tests.egg-info
reinstall:
make uninstall
make install
pylint:
pylint $(shell git ls-files '*.py')
lint:
make yamllint
make pylint
sphinx-help:
make help -f Sphinxfile
package_docs:
sphinx-apidoc -o docs/package dry_tests/