ci: added linting config & pipeline; renamed project to aiovieter
Some checks failed
ci/woodpecker/push/lint Pipeline failed

This commit is contained in:
Jef Roosens 2022-06-05 17:16:29 +02:00
parent 242d685a6c
commit e9a189b309
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
11 changed files with 67 additions and 19 deletions

View file

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