forked from Zeroji/supertokens-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (18 loc) · 727 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
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 autopep8"
@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"
lint:
autopep8 -r -i -a supertokens_flask tests
check-lint:
flake8 supertokens_flask tests
set-up-hooks:
cp hooks/pre-commit.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
test:
pytest
dev-install:
pip3 install flask flask-cors pycryptodome pytest jsonschema autopep8 flake8 requests pyyaml