-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
36 lines (29 loc) · 829 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
33
34
35
36
[tox]
envlist = py36, py37, flake8, layer_lint, rst
[travis]
python =
3.6.1: py36
[flake8]
max-line-length = 99
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 layer_linter tests/unit tests/functional
[testenv:layer_lint]
deps = layer-linter
commands = layer-lint layer_linter
[testenv:mypy]
commands = mypy src/layer_linter
[testenv:rst]
deps = restructuredtext_lint
commands = restructuredtext-lint README.rst
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
; -r{toxinidir}/requirements.txt
commands =
py.test --basetemp={envtmpdir} --cov=layer_linter --cov-report=term --no-cov-on-fail []