-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
44 lines (32 loc) · 1.03 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
help:
@echo " \x1b[33;1mcheck-lint: \x1b[0mtest styling of code for the library using flak8"
@echo " \x1b[33;1mtest: \x1b[0mruns pytest"
@echo " \x1b[33;1mlint: \x1b[0mformat code using black"
@echo "\x1b[33;1mset-up-hooks: \x1b[0mset up various git hooks"
@echo " \x1b[33;1mdev-install: \x1b[0minstall all packages required for development"
@echo " \x1b[33;1mhelp: \x1b[0mprints this"
format:
black .
check-lint:
pyright supertokens_python tests examples && pylint supertokens_python tests examples
set-up-hooks:
cp hooks/pre-commit.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
test:
pytest -vv ./tests/
dev-install:
pip install -r dev-requirements.txt
freeze-dev-requirements:
pip freeze > dev-requirements.txt
with-fastapi:
pip3 install -e .[fastapi]
with-django:
pip3 install -e .[django]
with-django2x:
pip3 install -e .[django2x]
with-drf:
pip3 install -e .[drf]
with-flask:
pip3 install -e .[flask]
build-docs:
rm -rf html && pdoc --html supertokens_python --template-dir docs-templates