This repository has been archived on 2026-02-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
python/Makefile

22 lines
395 B
Makefile

PYTHON ?= python3
VENV ?= .venv
SRC_DIR = aiovieter
.PHONY: venv
venv: $(VENV)/bin/activate
$(VENV)/bin/activate: setup.py setup.cfg
rm -rf '$(VENV)'
'$(PYTHON)' -m venv '$(VENV)'
'$(VENV)'/bin/pip install -e .[develop]
.PHONY: shell
shell: venv
@ '$(VENV)'/bin/python
.PHONY: lint
lint: venv
'$(VENV)/bin/flake8' '$(SRC_DIR)'
.PHONY: format
fmt: venv
'$(VENV)/bin/black' '$(SRC_DIR)'