-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (31 loc) · 844 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
.PHONY: clean build lint test help
clean:
@find . -name '*.pyc' -exec rm -f {} +
@find . -name '*.pyo' -exec rm -f {} +
@find . -name '*~' -exec rm -f {} +
@find . -name '__pycache__' -exec rm -rf {} +
@rm -rf *.egg-info
lint:
pylint sideeye
pylint tests --disable=wildcard-import,missing-docstring,duplicate-code
build: clean
pip install -e .[test]
test: build
nose2 -c tests/nose2.cfg -v --layer-reporter
@make clean
typecheck:
mypy .
testall: build lint typecheck test
help:
@echo " clean"
@echo " Remove python artifacts."
@echo " lint"
@echo " Check style with pylint."
@echo " test"
@echo " Run nose2 tests."
@echo " build"
@echo " Clean artifacts and rebuild package."
@echo " typecheck"
@echo " Typecheck with mypy."
@echo " testall"
@echo " Build, lint, typecheck, and run tests"