-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (56 loc) · 1.19 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
[tox]
envlist =
py37,
py38,
py39,
py310,
py311,
py312,
pypy3,
dist_and_docs
[travis]
python =
3.12: py312, dist_and_docs
[testenv]
passenv = *
deps =
pykechain>=1.13
coverage
pytest
wheel
virtualenv
commands =
python setup.py --quiet clean develop
pytest {posargs}
# coverage run --source=kecpkg setup.py test
# coverage combine --append
# coverage report -m
[testenv:dist_and_docs]
passenv = *
basepython = python3.12
deps =
check-manifest
readme_renderer
flake8
pydocstyle
commands =
flake8 kecpkg
pydocstyle kecpkg
check-manifest
python setup.py check -m -s
# test settings
[flake8]
max-line-length = 120
statistics = True
[pydocstyle]
ignore = D100,D104,D105,D203,D212,D213
#from: http://www.pydocstyle.org/en/latest/error_codes.html
#D100 Missing docstring in public module
#D104: Missing docstring in public package
#D105 Missing docstring in magic method
#D203 1 blank line required before class docstring
#D212 Multi-line docstring summary should start at the first line
#D213 Multi-line docstring summary should start at the second line
[pytest]
addopts = -l --color=yes -v
testpaths = tests