8000 Add commit linting to our tox environments · jayhawk87/github3.py@7744ffc · GitHub
[go: up one dir, main page]

Skip to content

Commit 7744ffc

Browse files
committed
Add commit linting to our tox environments
This will allow us to ensure a certain quality of commit message. Closes sigmavirus24gh-811
1 parent 37bd461 commit 7744ffc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ matrix:
3535
- env: TOXENV=notebooks
3636
- env: TOXENV=readme
3737
- env: TOXENV=doclint,docs
38+
- env: TOXENV=commitlint
3839
fast_finish: true
3940
allow_failures:
4041
- env: TOXENV=docstrings

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{27,34,35,36,py},py{27,36}-flake8,docstrings
2+
envlist = py{27,34,35,36,py},py{27,36}-flake8,doclint,commitlint,docstrings
33
minversion = 2.5.0
44

55
[testenv]
@@ -56,6 +56,12 @@ commands =
5656
doc8 docs/source/
5757
{toxinidir}/tests/bin/doclint
5858

59+
[testenv:commitlint]
60+
deps =
61+
gitlint >= 0.8.1
62+
commands =
63+
gitlint
64+
5965
[testenv:docs]
6066
deps =
6167
sphinx>=1.3.0

0 commit comments

Comments
 (0)
0