Skip to content

Commit 201e096

Browse files
committed
Updated venv and install
1 parent bcc0782 commit 201e096

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,37 @@ all: help
1010

1111
##@ Development
1212

13+
.PHONY: venv
1314
venv: ## Create a Python virtual environment
1415
$(info Creating Python 3 virtual environment...)
1516
poetry shell
1617

18+
.PHONY: install
1719
install: ## Install Python dependencies
1820
$(info Installing dependencies...)
1921
poetry config virtualenvs.create false
2022
poetry install
2123

24+
.PHONY: lint
2225
lint: ## Run the linter
2326
$(info Running linting...)
2427
flake8 service tests --count --select=E9,F63,F7,F82 --show-source --statistics
2528
flake8 service tests --count --max-complexity=10 --max-line-length=127 --statistics
2629
pylint service tests --max-line-length=127
2730

31+
.PHONY: test
2832
test: ## Run the unit tests
2933
$(info Running tests...)
30-
pytest --disable-warnings
34+
export RETRY_COUNT=1; pytest --pspec --cov=service --cov-fail-under=95 --disable-warnings
3135

32-
db-create: ## Creates the database tables
36+
.PHONY: db-init
37+
db-init: ## Initializes the database tables
3338
$(info Creating database tables...)
3439
@flask db-create
3540

3641
##@ Runtime
3742

43+
.PHONY: run
3844
run: ## Run the service
3945
$(info Starting service...)
4046
honcho start

0 commit comments

Comments
 (0)