diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-07-29 15:33:27 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-07-29 15:33:27 +0200 |
commit | 2173fd4f1721ccf1ca88c80ee525838e8e04ae8c (patch) | |
tree | dd00aca21074e873ec7b11acb6091b0febf7a752 /tox.ini | |
parent | 8370ac160a97b856a994c4a0b8a178675df195a1 (diff) |
Add Tox and Coala setup for Python linter
Change-Id: Ic2e16c14f13c244f77c16fa5f38349f4549603a3
Issue-ID: INT-1666
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..8237e045 --- /dev/null +++ b/tox.ini @@ -0,0 +1,19 @@ +[tox] +minversion = 3.2.0 +envlist = py +skipsdist = true +requires = pip >= 8 + +[testenv] +basepython = python3 +whitelist_externals = + git + bash +deps = + coala-bears + +[testenv:py] +commands_pre = + /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.py' > /tmp/.coalist_py" +commands = + /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn py --files $(</tmp/.coalist_py) \ " |