forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (52 loc) · 1.16 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
47
48
49
50
51
52
53
54
55
56
57
[tox]
skip_missing_interpreters = True
skipsdist=True
minversion = 1.8
envlist =
py35,
py36,
py37,
py38,
py-nightly
docs,
pep8,
mypy,
packaging
[testenv]
# This is required in order to get UTF-8 output inside of the subprocesses
# that our tests use.
setenv = LC_CTYPE = en_US.UTF-8
# Pass Display down to have it for the tests available
passenv = DISPLAY TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
whitelist_externals=convert
# xcffib has to be installed before cairocffi
deps =
pytest-runner
setuptools >= 40.5.0
xcffib >= 0.8.1
commands =
python setup.py pytest --addopts "--cov libqtile --cov-report term-missing {posargs}"
[testenv:packaging]
deps =
check-manifest
twine
commands =
check-manifest
python setup.py check -m -s
python setup.py sdist
twine check dist/*
[testenv:pep8]
deps =
flake8
pep8-naming
commands = flake8 {toxinidir}/libqtile {toxinidir}/bin/ {toxinidir}/test
[testenv:mypy]
deps =
mypy
xcffib >= 0.8.1
commands =
pip install -r requirements.txt
mypy -p libqtile
[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands = python setup.py build_sphinx -W