blob: 3e78f504f44f066e5e97cb8aec0f0af04ab8acca (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
[tox]
envlist = py34, py35, py36, py37, py38, pypy, pylint
skip_missing_interpreters = true
[testenv:pylint]
deps =
git+https://github.com/pycqa/pylint@master
pytest
commands = pylint -rn --rcfile={toxinidir}/pylintrc {toxinidir}/astroid
pylint: git+https://github.com/pycqa/pylint@master
[testenv]
deps =
pypy: backports.functools_lru_cache
pypy: enum34
lazy-object-proxy
; we have a brain for nose
; we use pytest for tests
nose
py34,py35,py36: numpy
py34,py35,py36: attr
py34,py35,py36: typed_ast
pytest
python-dateutil
pypy: singledispatch
six
wrapt
coverage
setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
commands =
; --pyargs is needed so the directory astroid doesn't shadow the tox
; installed astroid package
; This is important for tests' test data which create files
; inside the package
python -Wi {envsitepackagesdir}/coverage run -m pytest --pyarg astroid/tests {posargs:}
[testenv:coveralls]
setenv =
COVERAGE_FILE = {toxinidir}/.coverage
passenv =
*
deps =
coverage
coveralls
skip_install = true
commands =
python {envsitepackagesdir}/coverage combine --append
python {envsitepackagesdir}/coverage report --rcfile={toxinidir}/.coveragerc -m
- coveralls --rcfile={toxinidir}/.coveragerc
changedir = {toxinidir}
[testenv:coverage-erase]
setenv =
COVERAGE_FILE = {toxinidir}/.coverage
deps =
coverage
skip_install = true
commands =
python {envsitepackagesdir}/coverage erase
changedir = {toxinidir}
[testenv:docs]
skipsdist = True
usedevelop = True
changedir = doc/
deps =
sphinx
commands =
sphinx-build -b html . build
|