-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
28 lines (20 loc) · 1.19 KB
/
pytest.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
[pytest]
# python_files = *.py # we dont need to discover all python files - doctests will be discovered
addopts = -vvl
--doctest-modules
# --cov # we dont need coverage on setup.py test - we do it in the travis.yaml
# --pycodestyle # this option will be added in conftest.py for python 3.x
# --pep8 # this option will be added in conftest.py for python 2.x
# --mypy # this option will be added in conftest.py if not pypy
# -n <x> # this option will be added in conftest.py if pytest-xdist plugin is available
# # <x> = cpu_count() / 2 (minimum 1) for parallel testing
doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS ALLOW_UNICODE ALLOW_BYTES
doctest-glob = '*.rst'
### OLD - PEP8 - for python 2.x
# E402 = import not on top of the file
# E501 = ignore line length errors
# E701 = ignore multiple Line Statements - that we need for type Definitions,
# because in Classes pep is misinterpreting the type definition as multiple statement
# this can be ommited when using pytest-pycodestlye in all our travis files
pep8maxlinelength = 160
pep8ignore = E402 E701