summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-06-08 14:34:58 +0200
committerGitHub <noreply@github.com>2019-06-08 14:34:58 +0200
commitd135e4ef93a191aeb50ce1296757f7e75926a23c (patch)
tree3da2afd0af5dbc8ac8c40d7cb7031727b7a1ab13
parent794d64c8ef8ef0448205b51ff4a25c1589c2b2dd (diff)
parentc27fa486698e441ebc16448ee93e5539cb885ced (diff)
downloadgitlab-d135e4ef93a191aeb50ce1296757f7e75926a23c.tar.gz
Merge pull request #788 from python-gitlab/black-in-tox
Add a tox job to run black
-rw-r--r--tox.ini11
1 files changed, 10 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index b905c72..ac34542 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
-envlist = py36,py35,py34,py27,pep8
+envlist = py36,py35,py34,py27,pep8,black
[testenv]
setenv = VIRTUAL_ENV={envdir}
@@ -18,11 +18,20 @@ commands =
commands =
flake8 {posargs} gitlab/
+[testenv:black]
+basepython = python3
+deps = -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+ black
+commands =
+ black {posargs} gitlab
+
[testenv:venv]
commands = {posargs}
[flake8]
exclude = .git,.venv,.tox,dist,doc,*egg,build,
+max-line-length = 88
ignore = H501,H803
[testenv:docs]