Skip to content

Commit ba2e16c

Browse files
add flake8
1 parent 0038f48 commit ba2e16c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

encode/tests/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ tox
22
coverage
33
WebTest
44
django-webtest
5+
flake8

setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
ignore = E121, E125, E128
3+
exclude = doc/*, encode/migrations/*

tox.ini

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Copyright Collab 2013-2015
1+
# Copyright Collab 2013-2016
2+
# See LICENSE for details.
23
#
3-
# Tox (http://tox.testrun.org/) is a tool for running tests
4+
# Tox (https://tox.testrun.org/) is a tool for running tests
45
# in multiple virtualenvs. This configuration file will run the
56
# test suite on the specified python versions. To use it, "pip install tox"
67
# and then run "tox" from this directory.
@@ -17,6 +18,7 @@ deps = Django
1718

1819
[testenv]
1920
commands =
21+
flake8
2022
coverage run --source=. --rcfile={toxinidir}/.coveragerc {envbindir}/django-admin.py test
2123
coverage report --rcfile={toxinidir}/.coveragerc --show-missing
2224
setenv =
@@ -39,8 +41,7 @@ deps =
3941
[testenv:coveralls]
4042
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
4143
commands =
42-
coverage run --source=. --rcfile={toxinidir}/.coveragerc {envbindir}/django-admin.py test
43-
coverage report --rcfile={toxinidir}/.coveragerc --show-missing
44+
{[testenv]commands}
4445
coveralls
4546
deps =
4647
coveralls

0 commit comments

Comments
 (0)