Skip to content

Commit 835d3c3

Browse files
authoredDec 11, 2016
Improve the health of this package (MongoEngine#1428)
1 parent 3135b45 commit 835d3c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1567
-1896
lines changed
 

‎.landscape.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pylint:
2+
disable:
3+
# We use this a lot (e.g. via document._meta)
4+
- protected-access
5+
6+
options:
7+
additional-builtins:
8+
# add xrange and long as valid built-ins. In Python 3, xrange is
9+
# translated into range and long is translated into int via 2to3 (see
10+
# "use_2to3" in setup.py). This should be removed when we drop Python
11+
# 2 support (which probably won't happen any time soon).
12+
- xrange
13+
- long
14+
15+
pyflakes:
16+
disable:
17+
# undefined variables are already covered by pylint (and exclude
18+
# xrange & long)
19+
- F821
20+
21+
ignore-paths:
22+
- benchmark.py

‎.travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: python
22

33
python:
4-
- '2.6' # TODO remove in v0.11.0
54
- '2.7'
65
- '3.3'
76
- '3.4'
@@ -43,7 +42,11 @@ before_script:
4342
script:
4443
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage
4544

46-
after_script: coveralls --verbose
45+
# For now only submit coveralls for Python v2.7. Python v3.x currently shows
46+
# 0% coverage. That's caused by 'use_2to3', which builds the py3-compatible
47+
# code in a separate dir and runs tests on that.
48+
after_script:
49+
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coveralls --verbose; fi
4750

4851
notifications:
4952
irc: irc.freenode.org#mongoengine

0 commit comments

Comments
 (0)
Please sign in to comment.