-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (34 loc) · 901 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
37
38
39
40
41
42
# Minimal makefile for Sphinx documentation
#
.PHONY: help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY: clean
clean: ## remove python cache files
find . -name '__pycache__' | xargs rm -rf
find . -name '*.pyc' -delete
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .coverage
.PHONY: install
install: ## install packages with poetry
@./.dev/install
.PHONY: lint
lint: ## run linters
poetry run ./.dev/lint fix
.PHONY: test
test: ## test with coverage
@poetry run \
pytest -v --cov --cov-report xml --cov-report html
.PHONY: test-lint
test-lint: ## run linters
poetry run ./.dev/lint
.PHONY: publish
publish: ## release to pypi and github tag
@poetry publish --build -u __token__ -p $(PYPI_TOKEN)
.PHONY: outdated
outdated: ## show outdated packages
poetry show -o -a