-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (52 loc) · 1.42 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.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 all packages via poetry
@./.dev/install
.PHONY: lint
lint: ## run linters
poetry run ./.dev/lint fix
.PHONY: lint-test
lint-test: ## run test linters
poetry run ./.dev/lint
.PHONY: test
test: ## test with coverage
@poetry run \
pytest -x --log-cli-level error \
-m "not flaky" \
--cov --cov-report xml --cov-report html
.PHONY: test-version
test-version: ## check version compatibility
@./dev/test-version
.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
.PHONY: example
example: ## run task scheduler example
@APP_NAME=examples poetry run python -m examples.main serve
.PHONY: docs
docs: ## build documentation
@poetry run mkdocs build
.PHONY: docs-publish
docs-publish: ## publish the book to github pages
poetry run mkdocs gh-deploy
.PHONY: docs-serve
docs-serve: ## serve documentation
@poetry run mkdocs serve
.PHONY: readme
readme: ## generate readme.md
cp docs/index.md readme.md