forked from canonical/pylxd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
51 lines (43 loc) · 1 KB
/
tox.ini
File metadata and controls
51 lines (43 loc) · 1 KB
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
[tox]
minversion = 1.6
envlist = py3,pypy,lint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYLXD_WARNINGS=none
deps =
-r{toxinidir}/test-requirements.txt
commands = pytest --cov=pylxd pylxd {posargs}
[testenv:integration]
commands = pytest integration {posargs}
[testenv:integration-in-lxd]
commands = {toxinidir}/integration/run-integration-tests-in-lxd
[testenv:migration]
commands = pytest migration {posargs}
[testenv:format]
basepython=python3
deps =
black==20.8b1
flake8>=2.5.0
isort==5.6.4
commands=
isort --profile black {toxinidir}
black {toxinidir}
[testenv:lint]
basepython=python3
deps =
black==20.8b1
flake8>=2.5.0
isort==5.6.4
commands=
black --check {toxinidir}
isort --profile black --check-only --diff {toxinidir}
flake8 {toxinidir}
[flake8]
show-source = True
ignore = E203, E266, E501, W503, W504
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build