-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 789 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 789 Bytes
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
## help: print this help message and exit
help: Makefile
@echo ''
@sed -n 's/^## //p' Makefile
@echo ''
## test: execute the automated test suite
test:
pytest --cov=happer happer/tests/*.py
## style: check Python code style against PEP8
style:
pycodestyle setup.py happer/*.py happer/tests/*.py
## devdeps: install development dependencies
devdeps:
pip install --upgrade pip setuptools
pip install wheel twine
pip install pycodestyle 'pytest>=4.4' 'pytest-cov>=2.6' pytest-sugar
## hooks: install git hooks for development
hooks:
echo "make style" >> .git/hooks/pre-commit
chmod 755 .git/hooks/pre-commit
## clean: remove development artifacts
clean:
rm -rf __pycache__/ happer/__pycache__/ happer/*/__pycache__ build/ dist/ *.egg-info/