-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (28 loc) · 845 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
# This makefile is used to make it easier to get the project set up
# to be ready for development work in the local sandbox.
# example: "make setup"
PYTHON=python3
LINT_DIRS=ibm_project_sdk test/unit test/integration examples
setup: deps dev_deps install_project
all: upgrade_pip setup test-unit lint
ci: setup test-unit lint
upgrade_pip:
${PYTHON} -m pip install --upgrade pip
deps:
${PYTHON} -m pip install -r requirements.txt
dev_deps:
${PYTHON} -m pip install -r requirements-dev.txt
install_project:
${PYTHON} -m pip install -e .
test: test-unit test-int
test-unit:
${PYTHON} -m pytest --cov=ibm_project_sdk test/unit
test-int:
${PYTHON} -m pytest test/integration
test-examples:
${PYTHON} -m pytest examples
lint:
${PYTHON} -m pylint ${LINT_DIRS} --exit-zero
black --check ${LINT_DIRS}
lint-fix:
black ${LINT_DIRS}