-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 776 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 776 Bytes
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
executable_prefix := ./venv/bin/
venv:
@echo "running!"
ifeq ($(global_install),)
python3 -m venv venv
venv/bin/pip3 install -r requirements.dev.txt
else
@echo "It's a global install"
touch venv
executable_prefix =
endif
typecheck: venv
${executable_prefix}mypy -m goose.web_service
tests: venv
${executable_prefix}pytest
validate: venv
make typecheck tests lint security
${executable_prefix}black --check goose
reformat: venv
${executable_prefix}black goose/
security: venv
${executable_prefix}bandit -r -x *_test.py --quiet goose/
lint: venv
${executable_prefix}pylint goose/ || ${executable_prefix}pylint-exit -efail $$?
watch:
watchexec --ignore '.#.*' -e py make tests
web: venv
venv/bin/hypercorn --bind 0.0.0.0:5000 --debug goose.web_service:app