blob: 8a99741ac5bdce178bb9808ec620455c226e05fd (
plain)
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
|
SRC=$(wildcard *.py)
PYTESTS := minimize.py
.PHONY: check
check: check-pylint check-format check-mypy
.PHONY: check-pylint
check-pylint:
pylint --rcfile=.pylint.rc -j 0 $(SRC) || ./tools/check-pylint $$?
.PHONY: check-format
check-format:
yapf -d $(SRC)
.PHONY: check-format
check-mypy:
mypy $(SRC)
.PHONY: format
format:
yapf -i $(SRC)
.PHONY: test unittests pytest
test: unittests pytest
pytest:
pytest $(PYTESTS)
unittests:
python3 test.py
|