summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2019-12-12 15:18:22 -0500
committerPaul Belanger <pabelanger@redhat.com>2019-12-12 15:18:22 -0500
commita7a2a16e96bae7f5e84b1d8d0cbc66bb2a1da31d (patch)
treee714fccf3bab988270004fa81ca7ac952dfa19c7
parent84155f61501e3c512c0c3cd6a9ddf1f6639d4850 (diff)
downloadvyos-ansible-old-a7a2a16e96bae7f5e84b1d8d0cbc66bb2a1da31d.tar.gz
vyos-ansible-old-a7a2a16e96bae7f5e84b1d8d0cbc66bb2a1da31d.zip
Add tox -eblack support
This allows a user to format their code. Signed-off-by: Paul Belanger <pabelanger@redhat.com>
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index ee0591c..dd64055 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,6 +7,11 @@ skipsdist = True
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
+[testenv:black]
+install_command = pip install {opts} {packages}
+commands =
+ black -v -l79 {toxinidir}
+
[testenv:linters]
install_command = pip install {opts} {packages}
commands =