-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
97 lines (84 loc) · 2.1 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
88
89
90
91
92
93
94
95
96
97
# this file is *not* meant to cover or endorse the use of tox or pytest or
# testing in general,
#
# It's meant to show the use of:
#
# - check-manifest
# confirm items checked into vcs are in your sdist
# - python setup.py check (using the readme_renderer extension)
# confirms your long_description will render correctly on pypi
#
# and also to help confirm pull requests to this project.
[tox]
envlist = dist_and_docs
[travis]
python =
3.8: py38, dist_and_docs
[testenv]
passenv = TRAVIS, TRAVIS_JOB_ID, TRAVIS_BRANCH
deps =
pytest
six
commands =
python setup.py test
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
pypy3: pypy3
py3: python3.8
[testenv:py38]
passenv = TRAVIS, TRAVIS_JOB_ID, TRAVIS_BRANCH
deps =
pytest
six
coverage
coveralls
typing
setuptools>=38.6.0
wheel>=0.31.0
twine>=1.11.0
commands =
coverage run --source=pykechain setup.py test
- coveralls
[testenv:dist_and_docs]
passenv = TRAVIS, TRAVIS_JOB_ID, TRAVIS_BRANCH
basepython = python3
deps =
check-manifest
readme_renderer[md]
flake8
pydocstyle
typing
mypy
setuptools>=38.6.0
wheel>=0.31.0
twine>=2.0
commands =
flake8 pykechain
pydocstyle pykechain
# mypy pykechain
check-manifest
python setup.py bdist_wheel --universal
twine check dist/*
# test settings
[flake8]
max-line-length = 120
statistics = True
ignore = F821,W503
#F821 undefined name
#W503 line break before binary operator
[pydocstyle]
ignore = D100,D105,D203,D212,D213,D416
#from: http://www.pydocstyle.org/en/latest/error_codes.html
#D100 Missing docstring in public module
#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
#D416 Section name should end with a semicolon ('Example:', not 'Example')
#D412 No blank lines allowed between a section header and its content ('Example')
[pytest]
addopts = -l --color=yes
testpaths = tests