-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathtox.ini
More file actions
46 lines (40 loc) · 757 Bytes
/
tox.ini
File metadata and controls
46 lines (40 loc) · 757 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tox]
path_src = {toxinidir}/mltype
path_tests = {toxinidir}/tests
envlist =
py36
py37
py38
style
[testenv]
deps =
pytest
pytest-coverage
commands =
pytest \
--cov={envsitepackagesdir}/mltype \
{posargs}
[testenv:style]
skip_install = true
deps =
black
flake8
pydocstyle
commands =
black --check -l 80 {[tox]path_src} {[tox]path_tests}
flake8 {[tox]path_src} {[tox]path_tests}
pydocstyle {[tox]path_src}
##########################################################
[flake8]
ignore = E203, W503
max-line-length = 80
[pydocstyle]
convention = numpy
[pytest]
testpaths = tests
addopts =
--cov-fail-under=50
--cov-report=term-missing
--disable-warnings
--durations=20
-v