forked from mongomock/mongomock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (53 loc) · 1.64 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
54
55
56
57
58
59
[tox]
envlist = pep8,pylint,{pypy3,py36,py37,py38,py39,py310}-pymongo-pyexecjs,py310,py310-{pymongo,pyexecjs},py39-{pymongo3,pymongo361}-pyexecjs,py310-pymongo-pyexecjs-mongodb4
[testenv]
passenv = CI TRAVIS TRAVIS_* TEST_MONGO_HOST MONGODB
setenv =
EXECJS_RUNTIME = Node
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
pypy3: pypy3
deps=
codecov
coverage
pymongo: pymongo
pymongo3: pymongo<4.0
pymongo361: pymongo==3.6.1
pyexecjs: pyexecjs
pyexecjs: nodeenv
commands_pre=
pyexecjs: nodeenv --prebuilt -p
commands=
coverage run --source=mongomock -m unittest {posargs:discover}
codecov
[testenv:pep8]
basepython = python3.10
deps = hacking==4.1.0
commands = flake8 {posargs}
[testenv:pylint]
basepython = python3.10
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,W503,H216
exclude = .venv,.tox,dist,doc,*.egg,build,.ropeproject,.nodeenv
max-line-length = 100
[testenv:mypy]
basepython = python3.10
deps =
mypy
pymongo-stubs
commands = mypy tests/types
[pylint]
; 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,consider-using-f-string,deprecated-class,redundant-u-string-prefix,unused-private-member,unspecified-encoding
enable = no-else-return
string-quote=single-avoid-escape