Skip to content

Commit 2a4cb36

Browse files
committed
Add a makefile for Sir Complains-a-lot
1 parent 0fa2d5a commit 2a4cb36

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

sir_complainsalot/Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.PHONY = venv, lint, test, clean
2+
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4+
5+
venv:
6+
python3.8 -m venv env
7+
8+
install: venv
9+
. env/bin/activate; \
10+
pip install wheel ; \
11+
pip install -e ../_delphi_utils_python ;\
12+
pip install -e .
13+
14+
lint:
15+
. env/bin/activate; \
16+
pylint $(dir)
17+
18+
test:
19+
. env/bin/activate ;\
20+
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)
21+
22+
clean:
23+
rm -rf env
24+
rm -f params.json

0 commit comments

Comments
 (0)