forked from audreyfeldroy/cookiecutter-pypackage
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (23 loc) · 806 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
BAKE_OPTIONS=--no-input
help:
@echo "bake generate project using defaults"
@echo "watch generate project using defaults and watch for changes"
@echo "replay replay last cookiecutter run and watch for changes"
@echo "lint check style with flake8 and black"
@echo "fix fix black and isort style violations"
@echo "test run tests quickly with the default Python"
bake:
cookiecutter $(BAKE_OPTIONS) . --overwrite-if-exists
watch: bake
watchmedo shell-command -p '*.*' -c 'make bake -e BAKE_OPTIONS=$(BAKE_OPTIONS)' -W -R -D \{{cookiecutter.project_repo}}/
replay: BAKE_OPTIONS=--replay
replay: watch
;
lint:
flake8 hooks tests setup.py
black --check --diff hooks tests setup.py
fix:
black hooks tests setup.py
isort --profile black hooks tests setup.py
test:
pytest --verbose --capture=no