summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 15 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index fb24e02..63fe6f8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist=py3,mypy
+envlist=py3,mypy,black,black-run
[testenv]
deps =
@@ -19,3 +19,17 @@ commands=
deps =
mypy >= 0.761
commands = mypy --ignore-missing-imports logilab
+
+[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 .