forked from canonical/testflinger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (32 loc) · 821 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
[tox]
envlist = py
skipsdist = true
env_list = format, lint, unit
[testenv]
set_env =
PYTHONBREAKPOINT=pdb.set_trace
PY_COLORS=1
deps =
black
flake8
pylint
mock
mongomock
pytest
pytest-mock
pytest-cov
-r charm/requirements.txt
commands_pre =
{envbindir}/pip install -e .
[testenv:format]
commands =
{envbindir}/python -m black --check setup.py testflinger.py src tests charm
[testenv:lint]
set_env =
PYTHONPATH = {tox_root}/charm/src:{tox_root}/charm/lib
commands =
{envbindir}/python -m flake8 setup.py testflinger.py src tests charm/src charm/tests
{envbindir}/python -m pylint --recursive=true testflinger.py src tests charm/src charm/tests
[testenv:unit]
commands =
{envbindir}/python -m pytest --doctest-modules --ignore testflinger.py --cov=.