-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
50 lines (44 loc) · 991 Bytes
/
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
[tox]
skipsdist = True
[testenv]
install_command =
pipenv install --ignore-pipfile && \
pipenv install --dev --ignore-pipfile && \
pipenv --dev -r {packages}
list_dependencies_command = pipenv lock -r
whitelist_externals =
pipenv
rm
mkdir
setenv =
PYTHONPATH = {toxinidir}
PIPENV_DOTENV_LOCATION = {toxinidir}/tests/.env
passenv = TOXENV CI CODECOV_TOKEN CODECOV_ENV
[testenv:test]
commands =
rm -rf pytest
mkdir -p pytest/coverage
pipenv run py.test
pipenv run codecov -e TOXENV
[testenv:style]
commands =
pipenv run flake8 {toxinidir}/commands.py
pipenv run pydocstyle
[pytest]
testpaths = tests
addopts =
-v
--cov .
--cov-config .coveragerc
--cov-report term-missing
--cov-report html:pytest/coverage
--junitxml pytest/junit.xml
[flake8]
max-line-length = 120
max-complexity = 10
tee = true
count = true
show-statistics = true
show-source = True
[pydocstyle]
match = '(?!test_).*\.py|(?!conftest\.py)'