ci: added linting config & pipeline; renamed project to aiovieter
Some checks failed
ci/woodpecker/push/lint Pipeline failed
Some checks failed
ci/woodpecker/push/lint Pipeline failed
This commit is contained in:
parent
242d685a6c
commit
e9a189b309
11 changed files with 67 additions and 19 deletions
13
Makefile
13
Makefile
|
|
@ -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)'
|
||||
|
|
|
|||
Reference in a new issue