Add git commit coala bear 26/62326/8
authorSam Hague <shague@redhat.com>
Fri, 25 Aug 2017 16:14:21 +0000 (12:14 -0400)
committerSam Hague <shague@redhat.com>
Mon, 28 Aug 2017 17:48:20 +0000 (17:48 +0000)
Depends-on: https://git.opendaylight.org/gerrit/62325

Change-Id: I8523b865d60afa16c1ceac1261ee01ce6e70378c
Signed-off-by: Sam Hague <shague@redhat.com>
.coafile [new file with mode: 0644]
tox.ini

diff --git a/.coafile b/.coafile
new file mode 100644 (file)
index 0000000..382fc57
--- /dev/null
+++ b/.coafile
@@ -0,0 +1,7 @@
+[GitCommit]
+bears = GitCommitBear
+ignore_length_regex = Signed-off-by,
+    Also-by,
+    Co-authored-by,
+    http://,
+    https://
diff --git a/tox.ini b/tox.ini
index e3908be0205621e7492ca970e47ff86e2f4503c1..23a89bd2bfa770df5671f085826bf4fa5b7679a4 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,8 +1,19 @@
 [tox]
 minversion = 1.6.0
-envlist = docs
+envlist = coala,docs
 skipsdist = true
 
+[testenv:coala]
+basepython = python3
+deps =
+    coala==0.11
+    coala-bears==0.11
+    # Requests 2.16 breaks dependencies
+    requests<2.16
+commands =
+    python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
+    coala --non-interactive
+
 [testenv:docs]
 deps = sphinx
 commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html