This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
87 lines (71 loc) · 1.78 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
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
envlist = py27,py35,py36,py37,py38,py39,py310
skip_missing_interpreters = false
setenv =
RUN_CODE_TESTS=0
RUN_COVERAGE=0
[testenv]
deps = -rrequirements.txt
usedevelop = True
setenv = TOXPYTHON={envpython}
passenv =
LC_CTYPE
LIBRSYNC_DIR
PYDEVD
commands =
python setup.py build_ext
pytest {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands =
- coverage combine testing
- coverage erase
[testenv:code]
setenv = RUN_CODE_TESTS=1
commands =
python setup.py build_ext
pytest testing/test_code.py {posargs}
[testenv:coverage]
deps = -rrequirements.txt
passenv =
LC_CTYPE
LIBRSYNC_DIR
PYDEVD
setenv =
RUN_COVERAGE=1
TOXPYTHON={envpython}
commands =
- coverage combine testing
- coverage erase
python setup.py build_ext
pytest \
--cov=duplicity \
--cov-append \
--cov-report= \
{posargs}
- coverage combine testing
- coverage html
[testenv:docs]
deps = sphinx
skip_install = True
commands =
sphinx-apidoc -o docs/ -e -f .
[testenv:report]
deps = coverage
skip_install = true
commands =
- coverage combine testing
- coverage html
[pytest]
testpaths = testing/unit testing/functional
addopts = --failed-first --junitxml=report.xml
[pycodestyle]
# E402 module level import not at top of file: for python stdlib aliases
# W503 warnings for break before a binary operator. For new code, PEP8 prefers this and this warning should be ignored.
# W504 warnings for break after a binary operator. For new code, PEP8 prefers before, so these should be fixed -- TODO
# E722 do not use bare except -- TODO
# E731 do not assign a lambda expression, use a def -- TODO
# E741 ambiguous variable name -- TODO
ignore = E402,W503,W504,E722,E731,E741
max-line-length = 120