forked from elastic/elasticsearch-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (54 loc) · 1.1 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
45
46
47
48
49
50
51
52
53
54
55
56
57
[tox]
envlist = pypy,py27,py34,py35,py36,py37,py38,lint,docs
[testenv]
whitelist_externals = git
deps =
-r dev-requirements.txt
commands =
python setup.py test
[testenv:blacken]
deps =
black
commands =
black --target-version=py27 \
elasticsearch/ \
test_elasticsearch/ \
examples/ \
setup.py
python utils/license_headers.py fix \
elasticsearch/ \
test_elasticsearch/ \
examples/ \
utils \
docs \
setup.py
[testenv:lint]
deps =
flake8
black
commands =
black --target-version=py27 --check \
elasticsearch/ \
test_elasticsearch/ \
examples/ \
setup.py
flake8 \
elasticsearch/ \
test_elasticsearch/ \
examples/ \
utils \
docs \
setup.py
python utils/license_headers.py check \
elasticsearch/ \
test_elasticsearch/ \
examples/ \
utils/ \
docs/ \
setup.py
[testenv:docs]
deps =
sphinx-rtd-theme
-r dev-requirements.txt
commands =
sphinx-build docs/ docs/_build -b html