forked from cmanaha/python-elasticsearch-logger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
31 lines (29 loc) · 753 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
[tox]
envlist = {py27,py36}
[testenv]
passenv =
TEST_ES_SERVER
TEST_ES_PORT
basepython =
py27: python2.7
py36: python3.6
deps =
check-manifest
docutils
{py27}: readme_renderer
pylint
flake8
pytest
coverage
commands =
python setup.py check -m -r -s
flake8 --max-line-length=120 cmreslogging/
# pylint ./cmreslogging -r n --files-output=y '--msg-template="\{path\}:\{line\}: [\{msg_id\}(\{symbol\}), \{obj\}] \{msg\}"'
coverage erase
coverage run -a --source=./cmreslogging --branch tests/test_cmreshandler.py
coverage run -a --source=./cmreslogging --branch tests/test_cmresserializer.py
coverage xml -i
coverage html
[flake8]
exclude = .tox,*.egg,build,data
select = E,W,F