Skip to content

Commit

Permalink
Merge pull request #788 from python-gitlab/black-in-tox
Browse files Browse the repository at this point in the history
Add a tox job to run black
  • Loading branch information
max-wittig committed Jun 8, 2019
2 parents 794d64c + c27fa48 commit d135e4e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion 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}
Expand All @@ -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]
Expand Down

0 comments on commit d135e4e

Please sign in to comment.