forked from datalad/datalad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (42 loc) · 1.55 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
[tox]
envlist = py27,py36
#,flake8
[testenv]
commands = python setup.py develop
# -s must be used since some places to not play nicely with swallowed by nose output
# and there were no easy way to monkey patch nose for that
nosetests -s {posargs}
# interesting hints at http://blog.ionelmc.ro/2015/04/14/tox-tricks-and-patterns/ but yet to adopt
#{posargs:nosetests -s}
deps = -r{toxinidir}/requirements.txt
#
# tox 2. introduced isolation from invocation environment
# HOME is used by annex standalone atm
# https://git-annex.branchable.com/bugs/standalone_builds_shouldn__39__t_pollute___126____47__.ssh_with_helpers_merely_upon_annex_init/
# so let's pass it, though in the future we should isolate
# it back to guarantee that the tests do not rely on anything in
# current user HOME
passenv=HOME
[testenv:lint]
skip_install = true
deps =
codespell~=2.0
commands =
codespell -x .codespell-ignorelines -D- -I .codespell-ignorewords --skip "_version.py,*.pem" datalad setup.py
[testenv:cover]
commands = python setup.py develop
nosetests --with-coverage {posargs}
[testenv:flake8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[flake8]
#show-source = True
# E265 = comment blocks like @{ section, which it can't handle
# E266 = too many leading '#' for block comment
# E731 = do not assign a lambda expression, use a def
# W293 = Blank line contains whitespace
#ignore = E265,W293,E266,E731
max-line-length = 120
include = datalad
exclude = .tox,.venv,venv-debug,build,dist,doc,git/ext/