forked from weizhouapache/tf-ansible-deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (35 loc) · 944 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
40
41
42
[tox]
envlist = py3,py37,pep8
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = mock
requests
flake8
[testenv:py36]
commands = python3 unit_tests/calculate_roles.py
[testenv:py37]
commands = python3 unit_tests/calculate_roles.py
[testenv:pep8]
basepython = python3
commands =
flake8 {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
# E712 is ignored on purpose, since it is normal to use 'column == true'
# in sqlalchemy.
# TODO Hacking 0.6 checks to fix
# H102 Apache 2.0 license header not found
ignore = E402,E501,W504
# H106: Don't put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
enable-extensions = H106,H203
# TODO: fix and enable scripts in vcenter
exclude = .venv,.git,.tox,dist,envname,*lib/python*,*egg,*roles/vcenter*
max-complexity=25