Skip to content

Commit

Permalink
run coverage and black too
Browse files Browse the repository at this point in the history
  • Loading branch information
cguardia committed Jan 26, 2021
1 parent 7df2d01 commit 7cd1d2e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
[tox]
envlist = py, flake8
envlist = py, black, flake8

[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 --max-line-length=160 questions tests

[testenv:black]
basepython = python
deps = black
commands = black --check questions tests

[testenv:py]
setenv =
PYTHONPATH = {toxinidir}
Expand All @@ -14,5 +19,5 @@ deps =
-r{toxinidir}/requirements.txt
commands =
pip install -U pip
pytest --basetemp={envtmpdir}

coverage run --source questions -m pytest
coverage report -m

0 comments on commit 7cd1d2e

Please sign in to comment.