forked from djboni/unit_test_c_with_python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 840 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
PYTHON = python3
PYTHONPATH = PYTHONPATH=
PYLINT = pylint
PYLINT_OPTS = --jobs=0
PYLINT_OPTS += --disable=missing-docstring
PYLINT_OPTS += --disable=invalid-name
PYLINT_OPTS += --disable=duplicate-code
PYLINT_OPTS += --disable=fixme
MYPY = mypy
MYPYPATH = MYPYPATH=
all: examples mypy pylint
examples:
cd unittest && make all
cd integrtest && make all
clean:
@echo ">>> Cleaning..."
find .. -name __pycache__ | xargs rm -fr
find .. -name .mypy_cache | xargs rm -fr
cd unittest && make clean
cd integrtest && make clean
mypy:
@echo ">>> Versions..."
$(PYTHON) --version
$(MYPY) --version
@echo ">>> Type hints check..."
$(MYPYPATH) $(MYPY) load.py --ignore-missing-imports
pylint:
@echo ">>> Versions..."
$(PYTHON) --version
$(PYLINT) --version
@echo ">>> Linting..."
$(PYTHONPATH) $(PYLINT) $(PYLINT_OPTS) load.py