-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
36 lines (29 loc) · 848 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
help: ## Shows this help
@echo "$$(grep -h '#\{2\}' $(MAKEFILE_LIST) | sed 's/: #\{2\} / /' | column -t -s ' ')"
install: ## Install requirements
@[ -n "${VIRTUAL_ENV}" ] || (echo "ERROR: This should be run from a virtualenv" && exit 1)
pip install -r requirements.txt
clean:
rm -rf *.egg-info
rm -rf dist
find . -name ".DS_Store" -delete
find . -name "__pycache__" -delete
build:
flit build
tdd: ## Run test watcher
nodemon -e py -x "python test_project_runpy.py --failfast"
test: ## Run test suite
coverage erase
coverage run test_project_runpy.py
coverage report
lint: ## Run lint check
black --check .
ruff check .
# Bump project_runpy.__version__
# Update CHANGELOG (TODO)
# `git commit -am "1.0.0"`
# `make publish`
# `git tag v1.0.0`
# `git push --tags origin master`
publish: ## Publish a release to PyPI
flit publish