-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile for automating marketplace tasks
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
MARKET_POETRY=poetry | ||
|
||
.PHONY=install docker debug tests test-cov lint requirement | ||
|
||
install: | ||
pip3 install -r marketplace/requirementst.txt | ||
|
||
docker: | ||
docker build -t hermes-api -f docker/Dockerfile.market ./marketplace | ||
|
||
debug: | ||
$(MARKET_POETRY) run src/hermes/cli --host=127.0.0.1 --port=8000 run --dev | ||
|
||
tests: | ||
$(MARKET_POETRY) run pytest -s | ||
|
||
test-cov: | ||
$(MARKET_POETRY) run pytest --cov=hermes tests/ | ||
|
||
lint: | ||
printf "\n===============================\nRunning pylint...\n===============================\n\n" | ||
pylint marketplace/src/hermes | ||
printf "\n\n\n===============================\nRunning flake8...\n===============================\n" | ||
flake8 marketplace/src/hermes | ||
|
||
requirements: | ||
$(MARKET_POETRY) run pip freeze | grep -v hermes.git > requirements.txt | ||
|