-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtox.ini
46 lines (38 loc) · 1.09 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
45
46
[tox]
envlist = py35, py36, py37, py38, py39, py310, pylint, flake8, noimport, pytype
skip_missing_interpreters = True
[gh-actions]
python =
3.6: py36, flake8, pylint, noimport
3.7: py37
3.8: py38
3.9: py39, pre-commit, pytype
3.10: py310
[testenv]
# only run unit tests as they do not need additional hardware
deps = -rrequirements.txt
-rrequirements-test.txt
passenv = TRAVIS TRAVIS_*
commands = pytest --cov=btlewrap --timeout=10 test/unit_tests
[testenv:noimport]
# run tests without installing any Bluetooth libraries
deps= -rrequirements-test.txt
commands = pytest --timeout=10 test/no_imports
[testenv:integration_tests]
#there tests are run separately as they rquire read hardware
#need the command line argument --mac=<some mac> to work
commands = pytest --timeout=10 {posargs}
[flake8]
max-complexity = 10
install-hook=git
max-line-length=120
[testenv:flake8]
base=python3
ignore_errors=True
commands=flake8 test btlewrap
[testenv:pylint]
basepython = python3
skip_install = true
commands = pylint -j4 btlewrap test
[testenv:pytype]
commands = pytype --jobs 2 btlewrap