add: Makefile entries for black formatting & testing

This commit is contained in:
RazCrimson 2021-11-29 21:30:30 +05:30
parent 79223b15cb
commit 24636a544c

View File

@ -29,6 +29,10 @@ test: venv
./venv/bin/python ./unitest.py
./venv/bin/python ./unitest-restful.py
./venv/bin/python ./unitest-xmlrpc.py
./venv/bin/python -m black ./glances --check
format: venv
./venv/bin/python -m black ./glances
docs: venv-dev
./venv/bin/python -m glances -C ./conf/glances.conf --api-doc > ./docs/api.rst