Skip to content

Commit fad9339

Browse files
committed
Fix make from fresh clone
1 parent 5be404d commit fad9339

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ help:
1515
@echo "JBI make rules:"
1616
@echo ""
1717
@echo "Local"
18+
@echo " clean - clean local cache folders"
1819
@echo " format - run formatters (black, isort), fix in place"
1920
@echo " lint - run linters"
2021
@echo " start - run the API service locally"
@@ -27,10 +28,16 @@ help:
2728
@echo ""
2829
@echo " help - see this text"
2930

31+
.PHONY: clean
32+
clean:
33+
find . -name "__pycache__" | xargs rm -rf
34+
rm -rf .mypy_cache .pytest_cache __pycache__ .coverage .venv
35+
36+
3037
install: $(INSTALL_STAMP)
3138
$(INSTALL_STAMP): poetry.lock
3239
@if [ -z $(shell command -v poetry 2> /dev/null) ]; then echo "Poetry could not be found. See https://python-poetry.org/docs/"; exit 2; fi
33-
poetry install --no-root
40+
POETRY_VIRTUALENVS_IN_PROJECT=1 poetry install --no-root
3441
touch $(INSTALL_STAMP)
3542

3643
.PHONY: build

0 commit comments

Comments
 (0)