Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdb728e

Browse files
committed
Combine lint and test-lint into a single command.
1 parent 8b76450 commit cdb728e

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ script:
1717
env:
1818
- TOXENV=py27
1919
- TOXENV=lint
20-
- TOXENV=lint-test
2120

2221
after_success:
2322
- tox -e coveralls

run_pylint.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,5 @@ TESTS=blobstore_test.py,context_test.py,eventloop_test.py,google_test_imports.py
66

77
NON_TESTS=blobstore.py,context.py,django_middleware.py,eventloop.py,google_imports.py,__init__.py,key.py,metadata.py,model.py,msgprop.py,polymodel.py,prospective_search.py,query.py,stats.py,tasklets.py
88

9-
if [[ $* == *--test* ]]; then
10-
echo "Ignoring non-test files: ${NON_TESTS}"
11-
pylint --ignore=${NON_TESTS} --disable=invalid-name,W,I ndb
12-
else
13-
echo "Ignoring test files: ${TESTS}"
14-
pylint --ignore=${TESTS} --disable=W,I ndb
15-
fi
9+
pylint --ignore=${NON_TESTS} --disable=invalid-name,W,I ndb
10+
pylint --ignore=${TESTS} --disable=W,I ndb

tox.ini

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,4 @@ commands =
3535
./run_pylint.sh
3636
deps =
3737
-ehg+https://bitbucket.org/logilab/pylint@33e334be064c#egg=pylint
38-
logilab-common<=0.63.0 # Hack for pylint upstream
39-
40-
[testenv:lint-test]
41-
basepython =
42-
python2.7
43-
commands =
44-
{[testenv:lint]commands} --test
45-
deps =
46-
{[testenv:lint]deps}
38+
logilab-common<=0.63.0 # Hack for pylint upstream

0 commit comments

Comments
 (0)