Add Makefile for scripts management
This commit is contained in:
parent
15515e1b05
commit
2f360c6362
|
@ -0,0 +1,18 @@
|
||||||
|
.PHONY: lint test
|
||||||
|
.ONESHELL:
|
||||||
|
|
||||||
|
SHELL := bash
|
||||||
|
CPU_CORES := $(shell nproc)
|
||||||
|
|
||||||
|
all: lint test
|
||||||
|
|
||||||
|
venv:
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/active
|
||||||
|
pip install -r requirements-dev.txt
|
||||||
|
|
||||||
|
lint: venv
|
||||||
|
pylint scripts
|
||||||
|
|
||||||
|
test: venv
|
||||||
|
pytest -n ${CPU_CORES} --color=yes -v .
|
|
@ -0,0 +1,3 @@
|
||||||
|
pylint
|
||||||
|
pytest
|
||||||
|
pytest-xdist
|
Loading…
Reference in New Issue