summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-10-02 09:46:29 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-10-02 09:46:29 +0200
commitc6581e9871a356b73ccc640b1aeabd06f2590758 (patch)
tree4d24aac4c3564b4f78915f0634da7460ab68593b /tox.ini
parentadd5f7b8eba427de9d39caae864bbc6dc37ef980 (diff)
downloadastroid-git-c6581e9871a356b73ccc640b1aeabd06f2590758.tar.gz
Add black step in tox.ini and Travis, as well as the badge
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 3e78f504..14881de1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -38,6 +38,12 @@ commands =
; inside the package
python -Wi {envsitepackagesdir}/coverage run -m pytest --pyarg astroid/tests {posargs:}
+[testenv:formatting]
+basepython = python3
+deps = black==18.6b4
+commands = black --check --exclude "tests/testdata" astroid
+changedir = {toxinidir}
+
[testenv:coveralls]
setenv =
COVERAGE_FILE = {toxinidir}/.coverage