Skip to content

Commit db890e6

Browse files
Activate coala checking of comit messages
Almost exact copy from current Integration/Test. Change-Id: Ibfcf7b102b85951e42836a49874a85d80acd8159 Signed-off-by: Vratko Polak <[email protected]>
1 parent 1dd4f25 commit db890e6

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

.coafile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[GitCommit]
2+
bears = GitCommitBear
3+
ignore_length_regex = Signed-off-by,
4+
Also-by,
5+
Co-authored-by,
6+
http://,
7+
https://
8+
9+
[Python]
10+
bears = PEP8Bear
11+
files = **/*.py
12+
ignore = .*/**
13+
max_line_length = 120

tox.ini

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
[tox]
22
minversion = 1.6.0
3-
envlist = pep8
3+
envlist = pep8,coala
44
skipsdist = true
55

6+
[testenv:coala]
7+
basepython = python3
8+
deps =
9+
coala
10+
coala-bears
11+
commands =
12+
python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
13+
coala --non-interactive
14+
615
[testenv:pep8]
716
deps =
817
flake8
9-
pep8==1.7.0
1018
commands = flake8
1119

1220
[flake8]
1321
show-source = True
1422
max-line-length = 120
15-
1623
# - Select E121, E123, E126, E226, E241, E242 and E704 which are turned OFF
1724
# by default but represent guidelines accepted by us.
1825
# - Do not select E133 because it is incompatible with E123 which was
@@ -22,3 +29,7 @@ max-line-length = 120
2229
# that (select E133 instead of E123) but that should be caught by the
2330
# verify job.
2431
select = E,W
32+
exclude =
33+
.git,
34+
.tox,
35+
docs/conf.py

0 commit comments

Comments
 (0)