[PATCH 02 of 10 logilab-database] [enh] add black to tox.ini

Laurent Peuch cortex at worlddomination.be
Fri Apr 3 09:14:10 CEST 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1585788681 -7200
#      Thu Apr 02 02:51:21 2020 +0200
# Node ID 51884058d7319432daeae1c21392403117580c2b
# Parent  322f1d03549062cce458379bade9f55addbeb943
# Available At https://hg.logilab.org/users/lpeuch/logilab-database
#              hg pull https://hg.logilab.org/users/lpeuch/logilab-database -r 51884058d731
# EXP-Topic good-practice-modernisation
[enh] add black to tox.ini

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist=py3,check-manifest
+envlist=py3,check-manifest,black,black-run
 
 [testenv]
 deps =
@@ -14,3 +14,17 @@ deps =
   check-manifest
 commands=
   {envpython} -m check_manifest {toxinidir}
+
+[testenv:black]
+basepython = python3
+skip_install = true
+deps =
+  black >= 19.10b0
+commands = black --check .
+
+[testenv:black-run]
+basepython = python3
+skip_install = true
+deps =
+  black >= 19.10b0
+commands = black .



More information about the cubicweb-devel mailing list