-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (39 loc) · 887 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: run
run:
python3 ./src/
.PHONY: test
test: lint
rm -rf ./graphs/
python3 -m unittest discover -v src
.PHONY: test-fast
test-fast:
rm -rf ./graphs/
python3 -m unittest discover -v src
.PHONY: install
install:
git submodule update --init --recursive
python3 -m pip install -r requirements.txt
python3 -m pip install pylint
rm -rf ./build/
.PHONY: clean
clean:
rm -rf ./build/
.PHONY: build
build:
docker build -t canary:dev .
.PHONY: build
dev: build
docker run canary-dev
.PHONY: lint
lint:
pylint --disable=all \
--enable=unused-argument \
--enable=global-statement \
--enable=global-variable-not-assigned \
--enable=used-before-assignment \
--enable=function-redefined \
--enable=abstract-class-instantiated \
--enable=invalid-unary-operand-type \
--enable=no-member \
--enable=undefined-variable \
--enable=undefined-loop-variable ./src