forked from mongomock/mongomock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (47 loc) · 1.54 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[tox]
envlist = pep8,pylint,py27,{py27,pypy}-mock-pymongo-pyexecjs,{py34,py35,py36,py37,py38}-{pymongo-pyexecjs},py38,py38-{pymongo,pyexecjs}
[testenv]
passenv = CI TRAVIS TRAVIS_* TEST_MONGO_HOST
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
pypy: pypy
deps=
nose
nose-show-skipped
codecov
coverage
mock: mock
pymongo: pymongo
pymongo361: pymongo==3.6.1
pyexecjs: pyexecjs
commands=
mock,py34,py35,py36,py37,py38: nosetests -x -s --with-coverage --cover-package=mongomock --cover-erase --show-skipped {posargs}
{pypy,py27}-!mock: nosetests -x -s --with-coverage --cover-package=mongomock --cover-erase --show-skipped -I test__patch {posargs}
codecov
[testenv:pep8]
basepython = python3
deps = hacking==1.1.0
commands = flake8 {posargs}
[testenv:pylint]
basepython = python3.6
deps =
pylint
pylint-quotes
pymongo
pyexecjs
commands = pylint --rcfile=tox.ini --load-plugins pylint_quotes mongomock tests {posargs}
[flake8]
ignore = H803,H301,H302,H802,E402
exclude = .venv,.tox,dist,doc,*.egg,build,.ropeproject
max-line-length = 100
[REPORTS]
; TODO: Reenable all or at least most of those.
disable = missing-docstring,R,invalid-name,fixme,unused-argument,redefined-builtin,protected-access,wrong-import-order,attribute-defined-outside-init,cell-var-from-loop,broad-except,dangerous-default-value,too-many-lines,ungrouped-imports,no-member,too-many-function-args
enable = no-else-return
[MISCELLANEOUS]
string-quote=single-avoid-escape