-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathtox.ini
46 lines (40 loc) · 912 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
[tox]
envlist = py, lint, eslint, docs, build
isolated_build = true
[testenv]
deps = pytest
commands = py.test --ignore=src/fuzzinator {posargs}
download = true
[testenv:cov]
deps = pytest-cov
commands = py.test --ignore=src/fuzzinator --cov=fuzzinator {posargs}
usedevelop = true
[testenv:lint]
deps =
pycodestyle
pylint
pytest
commands =
pylint src/fuzzinator tests
pycodestyle src/fuzzinator tests --ignore=E501,E241
[testenv:eslint]
deps =
skip_install = true
allowlist_externals =
npm
npx
commands =
npm install --no-save eslint@6.8.0 eslint-plugin-jquery@1.5.1
npx eslint src/fuzzinator/ui/wui/resources/static/scripts/
[testenv:docs]
deps = -rdocs/requirements.txt
commands = sphinx-build docs {envtmpdir} -E
[testenv:build]
deps =
build
twine
virtualenv
skip_install = true
commands =
pyproject-build -o {envtmpdir}
twine check {envtmpdir}/*