-
Notifications
You must be signed in to change notification settings - Fork 62
/
tox.ini
44 lines (37 loc) · 939 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
[tox]
envlist = py, lint, docs, build
isolated_build = true
[testenv]
deps = pytest
commands = py.test {posargs}
download = true
[testenv:cov]
deps = pytest-cov
commands = py.test --cov=grammarinator --cov-config=tox.ini {posargs}
usedevelop = true
[coverage:run]
omit = **/tool/g4/*
[testenv:lint]
deps =
pycodestyle
pylint
pytest
commands =
pylint grammarinator tests
pycodestyle grammarinator tests --ignore=E501,W503 --exclude=grammarinator/tool/g4/ANTLRv4*.py,grammarinator/tool/fbs/FBRule_generated.py
[testenv:docs]
deps = -rdocs/requirements.txt
commands = sphinx-build docs {envtmpdir} -E -n
usedevelop = true
[testenv:build]
deps =
build
twine
virtualenv
skip_install = true
commands =
pyproject-build -o {envtmpdir}
twine check {envtmpdir}/*
[testenv:regen]
deps =
commands = grammarinator-process examples/grammars/HTMLLexer.g4 examples/grammars/HTMLParser.g4 -o examples/fuzzer/