forked from influxdata/influxdb-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (38 loc) · 1.17 KB
/
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
37
38
39
40
41
42
43
44
[tox]
envlist = py27, py35, py36, pypy, pypy3, flake8, pep257, coverage, docs
[testenv]
passenv = INFLUXDB_PYTHON_INFLUXD_PATH
setenv = INFLUXDB_PYTHON_SKIP_SERVER_TESTS=False
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
py27,py34,py35,py36: pandas==0.20.1
py27,py34,py35,py36: numpy==1.13.3
# Only install pandas with non-pypy interpreters
commands = nosetests -v --with-doctest {posargs}
[testenv:flake8]
deps =
flake8
pep8-naming
commands = flake8 influxdb
[testenv:pep257]
deps = pydocstyle
commands = pydocstyle --count -ve examples influxdb
[testenv:coverage]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
pandas
coverage
numpy==1.13.3
commands = nosetests -v --with-coverage --cover-html --cover-package=influxdb
[testenv:docs]
deps = -r{toxinidir}/requirements.txt
pandas==0.20.1
numpy==1.13.3
Sphinx==1.5.5
sphinx_rtd_theme
commands = sphinx-build -b html docs/source docs/build
[flake8]
ignore = N802,F821,E402
# E402: module level import not at top of file
# N802: nosetests's setUp function
# F821: False positive in intluxdb/dataframe_client.py