forked from renatahodovan/picireny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (38 loc) · 940 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, schema, build
isolated_build = true
[testenv]
passenv = ANTLR
deps = pytest
commands = py.test {posargs}
download = true
[testenv:cov]
deps = pytest-cov
commands = py.test --cov=picireny --cov-config=tox.ini {posargs}
usedevelop = true
[coverage:run]
omit = **/parser/*
[testenv:lint]
deps =
pycodestyle
pylint
pytest
commands =
pylint src/picireny tests
pycodestyle src/picireny tests --ignore=E501 --exclude=src/picireny/antlr4/parser/ANTLRv4*.py
[testenv:schema]
deps =
check-jsonschema
skip_install = true
commands =
check-jsonschema -v --check-metaschema schemas/format.json schemas/replacements.json
check-jsonschema -v --schemafile schemas/format.json tests/resources/inijson.json tests/resources/inijson-crlf.json
[testenv:build]
deps =
build
twine
virtualenv
skip_install = true
commands =
pyproject-build -o {envtmpdir}
twine check {envtmpdir}/*