-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
41 lines (35 loc) · 1003 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
37
38
39
[tox]
envlist = pep8,yamllint
[testenv]
skip_install = True
usedevelop = True
allowlist_externals =
bash
[testenv:yamllint]
deps = yamllint
commands = yamllint {toxinidir}
[testenv:bumpversion]
passenv =
# Git can only find its global configuration if it knows where the
# user's HOME is.
HOME
# If we set sign_tags in .bumpversion.cfg, we need to pass in the
# GnuPG agent reference to avoid having to retype the passphrase for
# an already-cached private key.
GPG_AGENT_INFO
deps = bump2version
commands = bump2version {posargs}
[testenv:pep8]
deps =
flake8
pylint
PyYAML
openstacksdk
commands =
bash -c "find {toxinidir} -type f -name '*.py' \
-not -path '{toxinidir}/docs/*' \
-not -path '{toxinidir}/.eggs/*' \
-not -path '{toxinidir}/*.egg-info/*' \
-not -path '{toxinidir}/.git/*' \
-not -path '{toxinidir}/.tox/*' \
| xargs -I % -r bash -c 'flake8 --verbose % && pylint --fail-under=8 %'"