Add Makefile for scripts management

This commit is contained in:
jo 2021-09-02 16:25:06 +02:00
parent 15515e1b05
commit 2f360c6362
2 changed files with 21 additions and 0 deletions

18
scripts/Makefile Normal file
View File

@ -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 .

View File

@ -0,0 +1,3 @@
pylint
pytest
pytest-xdist