forked from amplify-education/python-hcl2
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
32 lines (28 loc) · 951 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
[tox]
envlist=lint,{py38}-unit,{py39}-unit,{py310}-unit,{py311}-unit,{py312}-unit
skipsdist=true
[testenv]
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
pytest --cov=hcl2 --cov-report=xml:reports/pytest.xml hcl2 bin test/unit
coverage xml -o reports/coverage.xml
[testenv:lint]
whitelist_externals=npm
basepython=python3.8
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
pylint --rcfile=pylintrc --output-format=colorized hcl2 test bin setup.py
pycodestyle --ignore W503 hcl2 test bin setup.py
mypy
# recursively parse all terraform files in a directory
[testenv:tf_test]
whitelist_externals=rm
passenv = TERRAFORM_CONFIG
basepython=python3.8
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
rm -f hcl2/.lark_cache.bin
python bin/terraform_test {posargs}
[pycodestyle]
max_line_length=110
ignore=E402