summaryrefslogtreecommitdiff
path: root/testenv/tox.ini
blob: 937ca213767118948612698d98ee22838581e6e8 (plain)
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
[tox]
envlist = flake8, pylint, mypy, vulture, pytest, eslint, htmlhint
skipsdist = True

[testenv]
basepython = python3.7
changedir = /src

[testenv:flake8]
commands = flake8 --config=testenv/linters/flake8.ini kvmd genmap.py tests
deps =
	flake8
	flake8-double-quotes
	-rrequirements.txt

[testenv:pylint]
commands = pylint --rcfile=testenv/linters/pylint.ini --output-format=colorized --reports=no kvmd genmap.py tests
deps =
	pylint
	pytest
	pytest-asyncio
	-rrequirements.txt

[testenv:mypy]
commands = mypy --config-file=testenv/linters/mypy.ini --cache-dir=testenv/.mypy_cache kvmd genmap.py tests
deps =
	mypy
	-rrequirements.txt

[testenv:vulture]
commands = vulture --ignore-names=_format_P --ignore-decorators=@_exposed,@_system_task kvmd genmap.py tests testenv/linters/vulture-wl.py
deps =
	vulture
	-rrequirements.txt

[testenv:pytest]
commands = py.test -vv --cov-config=testenv/linters/coverage.ini --cov-report=term-missing --cov=kvmd tests
deps =
	pytest
	pytest-cov
	pytest-asyncio
	-rrequirements.txt

[testenv:eslint]
whitelist_externals = eslint
commands = eslint --config=testenv/linters/eslintrc.yaml --color --ext .js web/share/js

[testenv:htmlhint]
whitelist_externals = htmlhint
commands = htmlhint web/*.html web/*/*.html