-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
30 lines (27 loc) · 707 Bytes
/
Copy pathtox.ini
File metadata and controls
30 lines (27 loc) · 707 Bytes
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
# Refactored per https://blog.ionelmc.ro/2015/04/14/tox-tricks-and-patterns/#partial-environment-reuse
[tox]
envlist = py{3}-{unit}
[testenv]
#sitepackages = true
download = true
passenv = GH_TOKEN GITHUB_TOKEN
envdir =
py3: {toxworkdir}/py3
deps = -r{toxinidir}/test-requirements.txt
changedir=
unit: tests/
commands =
py{27,3}-unit: {[unittest]commands}
whitelist_externals =
pwd
[unittest]
commands =
pwd
pytest --cov git_change_request --cov-config=../tox.ini --cov-report html:coverage/{envname} \
--cov-fail-under=75 -v
pycodestyle ../git_change_request
[pycodestyle]
ignore = E112,E126,E127,E241,E242,F401
max-line-length = 120
statistics = True
show-source = True