forked from zephyrproject-rtos/west
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
30 lines (27 loc) · 851 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
[tox]
envlist=py3-{posix,windows}
skip_missing_interpreters=true
[flake8]
# We explicitly disable the following errors:
#
# - E126: continuation line over-indented for hanging indent
# - E261: at least two spaces before inline comment
# - E302: expected 2 blank lines, found 1
# - W504: line break after binary operator
ignore = E126,E261,E302,W504
# Don't lint setup.py, the .tox virtualenv directory, or the build directory
exclude = setup.py,.tox,build
[testenv]
deps = -rtox_deps.txt
platform = posix: (linux|darwin)
windows: win32
whitelist_externals =
py.test
setenv =
# The config test will be using users HOME, therefore we redirect it
# into tox temp dir during testing.
HOME={envtmpdir}/pytest-home
TOXTEMPDIR={envtmpdir}
commands =
py.test {posargs:tests}
flake8 --config={toxinidir}/tox.ini {toxinidir}