Update INFO.yaml with new PTL
[demo.git] / tox.ini
1 [tox]
2 minversion = 3.2.0
3 envlist = json,yaml,py
4 skipsdist = true
5 requires = pip >= 8
6
7 [testenv]
8 basepython = python3.8
9 allowlist_externals =
10   git
11   /bin/sh
12   sh
13   /bin/bash
14   bash
15 deps =
16   coala-bears
17
18 [testenv:json]
19 commands_pre =
20     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.json' > /tmp/.coalist_json"
21 commands =
22 # '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file
23 # parameter to '--files' opt
24     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn json --files $(</tmp/.coalist_json) \ "
25
26 [testenv:yaml]
27 commands_pre =
28     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.yaml' '*.yml' > /tmp/.coalist_yaml"
29 commands =
30 # '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file
31 # parameter to '--files' opt
32     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn yaml --files $(</tmp/.coalist_yaml) \ "
33
34 [testenv:py]
35 commands_pre =
36     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.py' > /tmp/.coalist_py"
37 commands =
38     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn py --files $(</tmp/.coalist_py) \ "