-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (39 loc) · 1.3 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
PYBASE=pservice
PYFILE=./$(PYBASE).py
test:
$(PYFILE) -v -v -b -f -x
test_some_combinations:
@# NOTE: perhaps a generator would be better
@# instead of this manual combination set?
$(PYFILE) -b -n -f -x >/dev/null
$(PYFILE) -b -n -x >/dev/null
$(PYFILE) -b -f -x >/dev/null
$(PYFILE) -b -x >/dev/null
$(PYFILE) -s -n -f -x >/dev/null
$(PYFILE) -s -n -x >/dev/null
$(PYFILE) -s -f -x >/dev/null
$(PYFILE) -s -x >/dev/null
$(PYFILE) -b -n -f >/dev/null
$(PYFILE) -b -n >/dev/null
$(PYFILE) -b -f >/dev/null
$(PYFILE) -b >/dev/null
$(PYFILE) -s -n -f >/dev/null
$(PYFILE) -s -n >/dev/null
$(PYFILE) -s -f >/dev/null
$(PYFILE) -s >/dev/null
$(PYFILE) -a >/dev/null
$(PYFILE) -a -nc >/dev/null
./demo.sh >/dev/null
@ echo OK
strip:
@ which strip-hints >/dev/null || (echo "ERROR: missing python package 'strip-hints', install it ala 'pip install strip-hints'.." && false)
@ strip-hints --outfile $(PYBASE)_striptypes.py $(PYFILE)
@ chmod ugo+x $(PYBASE)_striptypes.py
@ $(MAKE) -s PYBASE=$(PYBASE)_striptypes test
lint:
mypy --disallow-untyped-defs $(PYFILE) # --strict
pylint --jobs 0 --disable=W0311,C0114,C0116,C0103,C0301,C0303 $(PYFILE)
edit:
joe $(PYFILE)
clean:
@ rm -f $(PYBASE)_striptypes.py