[READINESS] Adding LICENSE file
[oom/readiness.git] / tox.ini
1 [tox]
2 minversion = 3.2.0
3 envlist = json,yaml,py,rst,md
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   nodeenv
18
19 [testenv:yaml]
20 commands_pre =
21     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.yaml' '*.yml' > /tmp/.coalist_yaml"
22 commands =
23 # '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file
24 # parameter to '--files' opt
25     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn --bears YAMLLintBear --files $(</tmp/.coalist_yaml) \ "
26
27 [testenv:py]
28 commands_pre =
29     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.py' > /tmp/.coalist_py"
30 commands =
31     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn --bears PEP8Bear,PyUnusedCodeBear,BanditBear,PyLintBear,PyImportSortBear,PyDocStyleBear,PyCommentedCodeBear  --files $(</tmp/.coalist_py) \ "
32