initial python3 template
This commit is contained in:
commit
534c1b3ea8
11 changed files with 113 additions and 0 deletions
22
python3/{{cookiecutter.project_name}}/Makefile
Normal file
22
python3/{{cookiecutter.project_name}}/Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
all: default
|
||||
|
||||
default: clean deps test lint
|
||||
|
||||
venv:
|
||||
if [ ! -e "venv/bin/activate_this.py" ] ; then virtualenv --python=python3 venv ; fi
|
||||
|
||||
clean:
|
||||
find . -name \*.pyc -delete
|
||||
find . -name __pycache__ -delete
|
||||
rm -rf dist/
|
||||
|
||||
test_unit: venv
|
||||
. venv/bin/activate && python3 -bb -m pytest tests
|
||||
|
||||
lint: venv
|
||||
. venv/bin/activate && flake8 .
|
||||
|
||||
deps: venv
|
||||
. venv/bin/activate && pip install -U -r requirements.txt
|
||||
|
||||
test: test_unit lint
|
||||
Loading…
Add table
Add a link
Reference in a new issue