forked from eiffel-community/etos-suite-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (27 loc) · 735 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py3,black,pylint,pydocstyle
[testenv]
deps =
-r{toxinidir}/test-requirements.txt
commands =
pytest -s --log-format="%(levelname)s: %(message)s" {posargs}
[testenv:black]
deps =
black
commands =
black --check --diff -l 100 .
[testenv:pylint]
deps =
pylint
-r{toxinidir}/test-requirements.txt # So tox can pylint tests as well.
commands =
pylint src/suite_starter tests
[testenv:pydocstyle]
deps =
pydocstyle
commands =
pydocstyle .