From 32f7ef1ed9794d9458f9617692cd8cd9da259e60 Mon Sep 17 00:00:00 2001
From: vtexier <vit@free.fr>
Date: Thu, 30 May 2019 11:34:19 +0200
Subject: [PATCH] [enh] #54 add black as dev dependency and in MakeFile (check
 and black commands)

---
 Makefile             | 8 ++++++--
 requirements_dev.txt | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index f8035f87..3fd3730a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: docs tests check mypy pylint
+.PHONY: docs tests check mypy pylint black
 
 # generate documentation
 docs:
@@ -9,7 +9,7 @@ tests:
 	python3 -m unittest ${TESTS_FILTER}
 
 # check
-check: mypy pylint
+check: mypy pylint black
 
 # check static typing
 mypy:
@@ -18,3 +18,7 @@ mypy:
 # check code errors
 pylint:
 	pylint --disable=C,R0913,R0903,R0902,R0914,R0912,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/
+
+# check format
+black:
+	black --check duniterpy
diff --git a/requirements_dev.txt b/requirements_dev.txt
index d175ea34..1d175d6a 100644
--- a/requirements_dev.txt
+++ b/requirements_dev.txt
@@ -1,5 +1,6 @@
 coveralls
 mypy
 pylint
+black
 sphinx
 sphinx_rtd_theme
-- 
GitLab