Skip to content

Commit

Permalink
Update tox to use black
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Dec 17, 2018
1 parent edb0ae3 commit e6b9fb5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ language: python

python:
- 2.7
- 3.4
- 3.5
- 3.6

matrix:
include:
- python: 3.6
env: TOXENV=sphinx
- python: 3.6
env: TOXENV=pylama
- python: 3.6
env: TOXENV=black
- python: 3.6
env: TOXENV=sphinx

install:
- pip install tox==3.0.0 tox-travis coveralls
- pip install tox==3.5.3 tox-travis coveralls

deploy:
provider: pypi
Expand Down
20 changes: 18 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
[tox]
envlist = py27,py34,py35,py36
envlist = py27,py35,py36

[testenv]
deps =
-rrequirements.txt
-rrequirements-dev.txt
passenv = *

commands =
py.test --cov=napalm --cov-report term-missing -vs --pylama {posargs}

[testenv:black]
deps = black==18.9b0

basepython = python3.6
commands =
black --check .

[testenv:pylama]
deps =
-rrequirements-dev.txt

basepython = python3.6
commands =
pylama .

[testenv:sphinx]
deps =
-rdocs/requirements.txt
Expand All @@ -19,4 +36,3 @@ commands =

whitelist_externals =
make

0 comments on commit e6b9fb5

Please sign in to comment.