-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
40 lines (34 loc) · 785 Bytes
/
tox.ini
File metadata and controls
40 lines (34 loc) · 785 Bytes
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
[tox]
envlist = py27,py38,pep8,develop
skipsdist = True
[base]
project_name = obsender
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv =
PACKAGE_NAME=obsender
TEST_PATH={env:PACKAGE_NAME}/tests/unit
functional: TEST_PATH={env:PACKAGE_NAME}/tests/functional
commands =
pytest --cov={env:PACKAGE_NAME} {posargs} --timer-top-n=10 {env:TEST_PATH}
[testenv:pep8]
basepython = python3
deps =
hacking==2.0.0
commands =
flake8
[testenv:venv]
commands = {posargs}
[flake8]
show-source = true
builtins = _
exclude = .venv,.git,.tox,dist,docs,*lib/python*,*egg,tools,build*
[testenv:develop]
basepython = python3
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
ipython
usedevelop = true