-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (29 loc) · 1.17 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
default: help;
# Usable commands
help: ## Display commands help
@grep -E '^[a-zA-Z][a-zA-Z_-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY:
notebook: ## Start a jupyter notebook server
jupyter notebook --ip 0.0.0.0 --port 8888 --no-browser --notebook-dir . --NotebookApp.token=''
.PHONY: notebook
format: ## Format all files inside backend with black & isort
poetry run black .
poetry run isort .
.PHONY: format
check_linting: ## Verify code with lint tools, like pylint
poetry run pylint ./src/giskard_hub
.PHONY: check_format
setup: ## Install dependencies
poetry install --sync
.PHONY: setup
doc: setup ## Build the doc
cp ./README.md ./script-docs/README.md
cd ./script-docs && rm -rf _build && poetry run make html
rm -rf ./docs && mkdir -p ./docs && touch ./docs/.nojekyll && mv ./script-docs/_build/html/* ./docs
echo docs-hub.giskard.ai > ./docs/CNAME
.PHONY: setup
quick-doc: ## Build the doc & serve it locally
cp ./README.md ./script-docs/README.md
cd ./script-docs && rm -rf _build && poetry run make html
poetry run python3 -m http.server --directory ./script-docs/_build/html/
.PHONY: quick-doc