diff options
author | 2020-04-09 18:38:07 +0200 | |
---|---|---|
committer | 2020-04-10 18:56:31 +0200 | |
commit | cd33b63dee361ad7e1a5f84131a03a482282f43a (patch) | |
tree | 7e1b3c71f2b5c31067daa9385e5977b227fce043 | |
parent | 287b75a69965d90e56dee2e6006fde931f9942d6 (diff) |
WIP: Add rst and md linters in tox
Issue-ID: INT-1523
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: Ifcce4fa5985df52fd66414f5842f50e21a79006a
Signed-off-by: mrichomme <morgan.richomme@orange.com>
-rw-r--r-- | .coafile | 11 | ||||
-rw-r--r-- | tox.ini | 18 |
2 files changed, 28 insertions, 1 deletions
@@ -26,3 +26,14 @@ pylint_enable = too-many-function-args, singleton-comparison ignore = .tox/** + +[rst] +bears = reSTLintBear +ignore = + .tox/** + +[md] +bears = MarkdownBear +ignore = + .tox/** + @@ -1,6 +1,6 @@ [tox] minversion = 3.2.0 -envlist = json,yaml,py +envlist = json,yaml,py,rst,md skipsdist = true requires = pip >= 8 @@ -11,6 +11,7 @@ whitelist_externals = bash deps = coala-bears + nodeenv [testenv:json] commands_pre = @@ -33,3 +34,18 @@ 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) \ " + +[testenv:rst] +commands_pre = + /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.rst' > /tmp/.coalist_rst" +commands = + /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn rst --files $(</tmp/.coalist_rst) \ " + +[testenv:md] +commands_pre = + nodeenv -p --verbose + npm install --global remark-cli + /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.md' > /tmp/.coalist_md" +commands = + /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn md --files $(</tmp/.coalist_md) \ " + |