-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
58 lines (53 loc) · 1.4 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
58
[tox]
envlist = python3.7,flake8,pylint
indexserver =
default = https://pypi.evetech.net/pypi/
[testenv]
passenv =
TEAMCITY_VERSION
PYTEST_ADDOPTS
setenv =
ESI_PYTESTING = 1
deps =
setuphelpers >= 0.1.2
cython == 0.29.36
esi {env:ESI_VERSION_CONDITION:}
pytest >= 3.9.3
pytest-cov >= 2.7.1
pytest-ordering >= 0.5
coverage == 4.5.3
teamcity-messages >= 1.25
gunicorn >= 19.6.0
mock >= 2.0.0
swagger_spec_validator >= 2.1.0
commands =
py.test --pyargs esi.testing --basetemp={envtmpdir} --cov {envsitepackagesdir}/esi_routes--cov {env:PYTEST_ADDOPTS:} tests/ {posargs}
[testenv:flake8]
passenv =
TEAMCITY_VERSION
FLAKE8_ADDOPTS
deps =
cython == 0.29.36
flake8 == 3.7.7
flake8-docstrings == 1.3.0
pydocstyle==3.0.0
setuphelpers >= 0.1.2
teamcity-messages >= 1.25
protobuf==3.19.4 # see https://github.com/PyCQA/pylint/issues/6281
commands = flake8 esi_routes tests {env:FLAKE8_ADDOPTS:}
[testenv:pylint]
passenv =
TEAMCITY_VERSION
PYLINT_ADDOPTS
deps =
cython == 0.29.36
pylint == 2.3.1
setuphelpers >= 0.1.2
teamcity-messages >= 1.25
commands = pylint esi_routes {env:PYLINT_ADDOPTS:}
[pytest]
addopts = -rx -rs -v --cov-report term-missing
[flake8]
exclude = *.pyc,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.ropeproject,.idea,.venv*,.pypy
ignore = E123,D202,D203,D205,D400,D413,W504
max-line-length = 120