forked from jmflinuxtx/kerneltest-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (40 loc) · 767 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
43
44
45
46
47
48
[tox]
envlist = lint,format,bandit,licenses,py36,py37
[testenv]
passenv = CI TRAVIS TRAVIS_*
deps =
coverage
pytest
sitepackages = False
commands =
coverage erase
coverage run -m pytest -vv {posargs}
coverage report -m
coverage xml
coverage html
[testenv:lint]
deps =
flake8 > 3.0
commands =
python -m flake8 {posargs}
[testenv:format]
deps =
black
commands =
python -m black --check {posargs:.}
[testenv:bandit]
deps = bandit
commands =
bandit -r kerneltest/ -x kerneltest/tests/ -ll
[testenv:licenses]
deps =
liccheck
commands =
liccheck -s .license_strategy.ini
[flake8]
show-source = True
max-line-length = 100
ignore = E203,W503
exclude = .git,.tox,dist,*egg
[pytest]
testpaths = kerneltest/tests/