Skip to content

Commit deebb4e

Browse files
committed
added the "linters" tox target to tox.ini and to travis job
1 parent 3543be9 commit deebb4e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
- TOX_ENV=py35-django19
1010
- TOX_ENV=py27-django110
1111
- TOX_ENV=py35-django110
12+
- TOX_ENV=linters
1213
install:
1314
- pip install tox
1415
script:

tox.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
{py27,py35}-django{18,19,110}
3+
{py27,py35}-django{18,19,110},linters
44

55
[testenv]
66
passenv = DATABASE_URL
@@ -14,3 +14,11 @@ deps =
1414
django-19: Django>=1.9,<1.10
1515
django-110: Django>=1.10,<1.11
1616
-r{toxinidir}/requirements_test.txt
17+
18+
# Dedicated linter tox target
19+
[testenv:linters]
20+
deps =
21+
# Does not need any other requirement
22+
-r{toxinidir}/requirements_test.txt
23+
commands =
24+
make lint

0 commit comments

Comments
 (0)