forked from RobertCraigie/prisma-client-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (69 loc) · 1.39 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.PHONY: bootstrap
bootstrap:
pip install -U wheel
pip install -U -e .[all]
prisma db push --schema=tests/data/schema.prisma
cp tests/data/dev.db dev.db
pre-commit install
.PHONY: database
database:
prisma db push --schema=tests/data/schema.prisma
cp tests/data/dev.db dev.db
. PHONY: package
package:
python scripts/docs.py
python -m prisma_cleanup
rm -rf dist/*
python setup.py sdist
python setup.py sdist bdist_wheel
sh scripts/check_pkg.sh
. PHONE: release
release:
sh scripts/check_pkg.sh
twine upload dist/*
.PHONY: test
test:
tox $(ARGS)
.PHONY: format
format:
blue .
for schema in `find . -name '*.schema.prisma'` ; do \
prisma format --schema=$$schema ; \
done
.PHONY: lint
lint:
tox -e lint
.PHONY: mypy
mypy:
tox -e mypy
.PHONY: pyright
pyright:
prisma generate --schema=tests/data/schema.prisma
pyright
.PHONY: typesafety
typesafety:
tox -e typesafety-pyright,typesafety-mypy
.PHONY: docs
docs:
python scripts/docs.py
mkdocs build
.PHONY: docs-serve
docs-serve:
python scripts/docs.py
mkdocs serve
.PHONY: clean
clean:
python -m prisma_cleanup
rm -rf /tmp/tox/prisma-client-py
rm -rf `find . -name __pycache__`
rm -rf `find examples -name '.venv' `
rm -rf `find tests/integrations -name '.venv' `
rm -rf .tests_cache
rm -rf .mypy_cache
rm -rf htmlcov
rm -rf *.egg-info
rm -f .coverage
rm -f .coverage.*
rm -rf build
rm -rf dist
rm -f coverage.xml