forked from BoboTiG/python-mss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (38 loc) · 990 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
[tox]
envlist =
lint
types
docs
py{38,37,36,35,py3}
skip_missing_interpreters = True
[testenv]
passenv = DISPLAY
alwayscopy = True
deps =
pytest
# Must pin that version to support PyPy3
numpy==1.15.4
pillow
commands =
python -m pytest {posargs}
[testenv:lint]
description = Code quality check
deps =
flake8
pylint
commands =
python -m flake8 docs mss tests
python -m pylint mss
[testenv:types]
description = Type annotations check
deps =
mypy
commands =
# "--platform win32" to not fail on ctypes.windll (it does not affect the overall check on other OSes)
python -m mypy --platform win32 --ignore-missing-imports mss tests docs/source/examples
[testenv:docs]
description = Build the documentation
deps = sphinx
commands =
sphinx-build -d "{toxworkdir}/docs" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c "print('documentation available under file://{toxworkdir}/docs_out/index.html')"