forked from Yelp/elastalert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (31 loc) · 742 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
37
[tox]
project = elastalert
envlist = py26,py27
[testenv]
deps = -rrequirements-dev.txt
commands =
coverage run --source=elastalert/,tests/ -m pytest --strict {posargs}
coverage report -m
flake8 .
[testenv:lint]
deps = {[testenv]deps}
pylint
commands =
pylint --rcfile=.pylintrc elastalert
pylint --rcfile=.pylintrc tests
[testenv:devenv]
envdir = virtualenv_run
commands =
[pytest]
norecursedirs = .* virtualenv_run docs build
[testenv:docs]
deps = {[testenv]deps}
sphinx
changedir = docs
commands = sphinx-build -b html -d build/doctrees source build/html
[flake8]
# ignore certain violations
# E501 - long lines
exclude = .git,__pycache__,.tox,docs,virtualenv_run,modules
ignore = E501
max-line-length = 140