-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
53 lines (41 loc) · 1.16 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
.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 .pytest_cache
rm -rf .coverage
.PHONY: docs
docs: ## Build docs
cd docs && make docs
.PHONY: install-dev
install-dev: ## Install packages for development
@./dev/install
.PHONY: lint
lint: ## Run linters
@poetry run ./dev/lint fix
.PHONY: lint-check
lint-check: ## Run linters in check mode
@poetry run ./dev/lint
.PHONY: test
test: ## Test with python 3.8 with coverage
@poetry run pytest -x -v --cov --cov-report xml
.PHONY: publish
publish: ## Release to pypi
@poetry publish --build -u __token__ -p $(PYPI_TOKEN)
.PHONY: notebook
notebook: ## Run Jupyter notebook server
@poetry run ./dev/start-jupyter 9095
.PHONY: book
book: ## Build static jupyter {book}
poetry run jupyter-book build docs --all
.PHONY: publish-book
publish-book: ## Publish the book to github pages
poetry run ghp-import -n -p -f docs/_build/html
.PHONY: outdated
outdated: ## Show outdated packages
poetry show -o -a