forked from canonical/ua-reviewkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (40 loc) · 1.34 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
[tox]
skipsdist = True
envlist = pep8,pylint,py3
sitepackages = False
minversion = 3.18.0
[testenv]
basepython = {env:TOX_PYTHON:python3}
unit_tests = {toxinidir}/tests/unit/
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
TERM=linux
PYTHONPATH=juju
PYFILES={toxinidir}/juju/ {toxinidir}/kubernetes/ {[testenv]unit_tests}
non-utc-tz: TZ=EST+5
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run --serial --test-path {[testenv]unit_tests} {posargs}
[testenv:pep8]
allowlist_externals = flake8
commands =
flake8 -v {posargs:{env:PYFILES}}
[flake8]
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E401 multiple imports on one line
# H301 one import per line
# W504 line break after binary operator
ignore = E126,E128,E401,H301,W504
# H106: Don't put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
# H204: Use assert(Not)Equal to check for equality
# H205: Use assert(Greater|Less)(Equal) for comparison
# H904: Delay string interpolations at logging calls
enable-extensions = H106,H203,H204,H205,H904
show-source = true
import-order-style = pep8
[testenv:pylint]
allowlist_externals = pylint
commands = pylint -v --rcfile={toxinidir}/pylintrc {posargs:{env:PYFILES}}