-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeFile
40 lines (32 loc) · 938 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
.DEFAULT_GOAL := help
clean: ## Clean project files
rm -rf .venv
rm -rf *.egg-info
rm -rf dist
rm -rf rts/__pycache__
rm -rf tests/__pycache__
rm -rf .pytest_cache
rm -rf .coverage
rm -rf coverage.xml
setup: ## Install dependencies and configure VirtualEnv
poetry config virtualenvs.in-project true
poetry update
poetry install
inspect: ## Run code analysis
poetry run flake8 rts tests
poetry run black --check rts tests
poetry run bandit -r rts
test: ## Run unit and integration tests
poetry run pytest -vv --cov-report=xml --cov=rts tests/
build: ## Package this project in wheels/zip formats
poetry build
run: ## Run this project
poetry run rts
deploy: ## Deploy the current build to Pypi
poetry config pypi-token.pypi $(token)
poetry build
poetry publish
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |\
sort |\
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'