Skip to content

Commit

Permalink
Make tox check black compliance
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Beckmeyer <[email protected]>
  • Loading branch information
non-Jedi committed May 25, 2018
1 parent d13255c commit 010c99c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ def exec_file(names):
setup_requires=["pytest-runner"],
tests_require=["pytest", "responses"],
extras_require={
"test": ["tox", "pytest", "flake8", "responses"],
"test": ["tox", "pytest", "responses"],
"doc": [
"Sphinx==1.4.6",
"sphinx-rtd-theme==0.1.9",
"sphinxcontrib-napoleon==0.5.3",
],
"format": ["flake8", "black"],
},
)
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py34,py35,py36,packaging,pep8,docs
envlist = py27,py34,py35,py36,packaging,format,docs

[testenv]
passenv = TRAVIS TRAVIS_*
Expand All @@ -14,9 +14,12 @@ commands=
coverage report
- coveralls

[testenv:pep8]
[testenv:format]
deps = .[format]
skip_install = True
commands = /bin/bash -c "flake8 matrix_client samples test {env:PEP8SUFFIX:}"
commands =
/bin/bash -c "flake8 matrix_client samples test {env:PEP8SUFFIX:}"
/bin/bash -c "black -l 90 --check matrix_client samples test setup.py docs"

[testenv:packaging]
deps =
Expand Down

0 comments on commit 010c99c

Please sign in to comment.