wooyek/django-opt-out

View on GitHub
setup.cfg

Summary

Maintainability
Test Coverage
[bumpversion]
current_version = 0.9.3
commit = True
tag = True

[aliases]
test = pytest
rc = egg_info --tag-date --tag-build=.rc sdist
rtm = egg_info --tag-date --tag-build=.rtm bdist
wh = egg_info sdist

[bumpversion:file:src/django_opt_out/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

[bumpversion:file:example_project/src/website/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

[wheel]
universal = 1

[bdist_wheel]
universal = 1

[flake8]
ignore = D203
exclude = 
    src/*/migrations,
    tests/test_data.py,
    .*/,
    */.*
    docs/conf.py,
    build,
    dist
max-line-length = 200

[coverage:run]
branch = true
data_file = .tmp/.coverage

[coverage:paths]
source = 
    src/django_opt_out
    .tox/*/lib/python*/site-packages/django_opt_out
    .tox/pypy*/site-packages/django_opt_out

[coverage:report]
omit = 
    *site-packages*
    *tests*
    *.tox*
    *settings/*
show_missing = True
skip_covered = True
fail_under = 90
exclude_lines = 
    noqa
    pragma: no cover
    def __repr__
    if self.debug:
    if settings.DEBUG
    raise AssertionError
    raise NotImplementedError
    if 0:
    if __name__ == .__main__.:

[coverage:html]
directory = .tmp/coverage

[coverage:xml]
output = .tmp/coverage.xml

[check-manifest]
ignore-bad-ideas = *.mo

[tool:pytest]
python_files = tests.py test_*.py *_tests.py
addopts = -rsxX --color=yes -v --doctest-modules --doctest-glob='README.rst'
testpaths = tests src README.rst
python_classes = *Tests
doctest_optionflags = ELLIPSIS
DJANGO_SETTINGS_MODULE = tests.settings
FAIL_INVALID_TEMPLATE_VARS = True
django_find_project = true

[isort]
known_localfolder = django_opt_out,website,test,tests,test_data
known_standard_library = pathlib
default_section = THIRDPARTY
line_length = 200
not_skip = __init__.py
skip = migrations,.eggs
skip-glob = */migrations/*