2022-05-31 08:47:25 +02:00
|
|
|
PYTHON ?= python3
|
|
|
|
VENV ?= .venv
|
2022-06-05 17:16:29 +02:00
|
|
|
SRC_DIR = aiovieter
|
2022-05-31 08:47:25 +02:00
|
|
|
|
|
|
|
.PHONY: venv
|
|
|
|
venv: $(VENV)/bin/activate
|
2022-06-05 17:16:29 +02:00
|
|
|
$(VENV)/bin/activate: setup.py setup.cfg
|
2022-05-31 08:47:25 +02:00
|
|
|
rm -rf '$(VENV)'
|
|
|
|
'$(PYTHON)' -m venv '$(VENV)'
|
2022-06-05 17:16:29 +02:00
|
|
|
'$(VENV)'/bin/pip install -e .[develop]
|
2022-05-31 08:47:25 +02:00
|
|
|
|
|
|
|
.PHONY: shell
|
|
|
|
shell: venv
|
|
|
|
@ '$(VENV)'/bin/python
|
2022-06-05 17:16:29 +02:00
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint: venv
|
|
|
|
'$(VENV)/bin/flake8' '$(SRC_DIR)'
|
|
|
|
|
|
|
|
.PHONY: format
|
|
|
|
format: venv
|
|
|
|
'$(VENV)/bin/black' '$(SRC_DIR)'
|