Add Makefile for scripts management
This commit is contained in:
parent
15515e1b05
commit
2f360c6362
2 changed files with 21 additions and 0 deletions
18
scripts/Makefile
Normal file
18
scripts/Makefile
Normal 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 .
|
3
scripts/requirements-dev.txt
Normal file
3
scripts/requirements-dev.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
pylint
|
||||
pytest
|
||||
pytest-xdist
|
Loading…
Add table
Add a link
Reference in a new issue