-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (36 loc) · 1.08 KB
/
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
47
48
49
50
51
# Makefile for Python Barcode generator
.DEFAULT_GOAL := all
# all: develop
install_requirements:
pip install -r requirements.txt
remember:
@echo --------------------------------------------------
@echo "Hello from the Makefile..."
@echo "Don't forget to run: 'make install_requirements'"
@echo --------------------------------------------------
clean:
@rm -f -R src/build
@rm -f -R src/dist src/log
@rm -f -R .eggs *egg-info
@rm -f -R .pytest_cache
@rm -f -R lib\__pycache__
@rm -f -R tests\__pycache__
@rm -f -R doc\doxygen\build
@rm -f -R doc\sphinx-autodoc\build
pep8: remember
flake8 --max-complexity 12 --exit-zero --ignore=E501 src/barcode_generator.py
flake8: pep8
lint: remember
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" -r n -d E0611,R0201,C0301 src/barcode_generator.py
pylint: lint
coverage:
coverage report -m
test: lint pep8 nosetests coverage
pytest:
py.test tests
exe:
make_exe.cmd
#sphinx:
# cd doc\sphinx-autodoc & make clean & make html & cd ...
#doxygen:
# cd doc\doxygen & "C:\Program Files\doxygen\bin\doxygen.exe" & cd ...