bitranox/lib_regexp

View on GitHub
pytest.ini

Summary

Maintainability
Test Coverage
[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