-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
55 lines (45 loc) · 1.36 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
[tox]
envlist = pep8,py3
skipsdist = True
# NOTE: Avoid build/test env pollution by not enabling sitepackages.
sitepackages = False
# NOTE: Avoid false positives by not skipping missing interpreters.
skip_missing_interpreters = False
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
CHARM_DIR={envdir}
install_command =
pip install {opts} {packages}
[testenv:py3]
basepython = python3
deps = -r{toxinidir}/requirements.txt
[testenv:pep8]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands = flake8 {posargs} .
[testenv:revisions]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands = python3 {toxinidir}/list-revisions-in-charmstore.py {posargs}
[testenv:code-imports-status]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands = python3 {toxinidir}/code-imports-status.py {posargs}
[testenv:release-contributors]
basepython = python3
deps = -r{toxinidir}/requirements.txt
allowlist_externals =
{toxinidir}/release-contributors.sh
commands = {toxinidir}/release-contributors.sh {posargs}
[testenv:update-channel-single]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands = python3 {toxinidir}/update-channel-single.py {posargs}
[testenv:venv]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands = {posargs}
[flake8]
ignore = E402,E226,W504
exclude = */charmhelpers