summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRazCrimson <52282402+RazCrimson@users.noreply.github.com>2021-11-29 21:30:30 +0530
committerRazCrimson <52282402+RazCrimson@users.noreply.github.com>2021-11-29 21:51:18 +0530
commit24636a544c43a6c28e560265ee3bd11491e5613d (patch)
treeb7665961af1965b655cee2469f54b56c4ede9e24 /Makefile
parent79223b15cba7d190c891db215bcabe6297b1907b (diff)
add: Makefile entries for black formatting & testing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 60790658..deb9ca33 100644
--- a/Makefile
+++ b/Makefile
@@ -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