forked from rueckstiess/mtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (56 loc) · 1.58 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
[tox]
minversion = 2.3
envlist = py27, py36
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = make
commands = nosetests --detailed-errors --verbose --with-coverage --cover-package=mtools
[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 nose
[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 79
max-line-length = 79
[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
# C901 skipped: 'MLaunchTool.init' is too complex
ignore = E123,E125,N802,N806,F401,W503,C901
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