-
Notifications
You must be signed in to change notification settings - Fork 405
/
tox.ini
74 lines (66 loc) · 1.92 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tox]
minversion = 3.8
envlist = py38, py39, py310, py311
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = make
commands = pytest -v --cov mtools --cov-branch --cov-report term-missing:skip-covered
[testenv:doc]
deps =
-r{toxinidir}/requirements.txt
doc8
pyenchant
sphinx
sphinxcontrib-spelling
sphinx_rtd_theme
commands = doc8 doc
make clean -C {toxinidir}/doc
# make linkcheck -C {toxinidir}/doc -- currently cannot handle https
make spelling -C {toxinidir}/doc
make html -C {toxinidir}/doc
[testenv:flake8]
deps =
pep8-naming
flake8
commands = flake8
[testenv:isort]
deps = isort
commands =
isort -c --diff -s .tox -o dateutil -o numpy -o pymongo -o bson -o pytest
[testenv:pydocstyle]
deps = pydocstyle
commands = pydocstyle --count
[doc8]
# Ignore target directories
ignore-path = doc/_build*,.tox
# File extensions to use
extensions = .rst
# Maximum line length should be 99 to match code line length
max-line-length = 99
[flake8]
show-source = True
# E123, E125 skipped as they are invalid PEP-8.
# N802 skipped (function name should be lowercase)
# N806 skipped (variable in function should be lowercase)
# F401 skipped (imported but unused) after verifying current usage is valid
# W503 skipped (line break before binary operator)
# W504 skipped (line break after binary operator)
# C901 skipped: 'MLaunchTool.init' is too complex
# N815 skipped: variable 'filterArgs' in class scope should not be mixedCase)
# N812 skipped: lowercase 'queue' imported as non lowercase 'Queue'
ignore = E123,E125,N802,N806,F401,C901,W503,W504,N815,N812
builtins = _
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,*figures/*,__init__.py,build/*,setup.py,mtools/util/*,mtools/test/test_*
count = true
statistics = true
max-complexity = 49
max-line-length = 99
[gh]
python =
3.8 = py38
3.9 = py39
3.10 = py310
3.11 = py311