forked from scrool/xled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (39 loc) · 868 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
[tox]
envlist = py27, py35, py36, py37, py38, linters
[travis]
python =
3.8: py38
3.7: py37
3.6: py36
3.5: py35
2.7: py27
# Linters
[testenv:flake8]
basepython=python
skip_install=true
deps=flake8
commands=flake8 xled/ tests/ setup.py
[testenv:black]
basepython = python3
skip_install = true
deps = black
commands =
black --check xled/ tests/ setup.py
[testenv:linters]
basepython = python3
skip_install = true
deps =
{[testenv:black]deps}
{[testenv:flake8]deps}
commands =
{[testenv:black]commands}
{[testenv:flake8]commands}
[testenv]
setenv =
PYTHONPATH = {toxinidir}
extras = tests
commands = python setup.py test
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt