[run]
branch = False

omit =
    # omit the following directory
    */pbr/*
    */site-packages/*
    /home/travis/virtualenv/*
    *.eggs/*
    */distutils/*
    PyFunceble/config/*

    # omit the following file
    PyFunceble/api_core.py
    PyFunceble/auto_save.py
    PyFunceble/dispatcher.py
    PyFunceble/production.py
    PyFunceble/simple_core.py
    PyFunceble/whois.py
    PyFunceble/sqlite.py
    PyFunceble/mysql.py
    PyFunceble/requests.py

[report]
# This should be False one we move into production
skip_covered = True

# Regexes for lines to exclude from consideration
exclude_lines =
    # Have to re-enable the standard pragma
    pragma: no cover

    # Never cover __init__
    def __init__

    # Don't complain about missing debug-only code:
    def __repr__
    if self\.debug

    # Don't complain if tests don't hit defensive assertion code:
    raise AssertionError
    raise NotImplementedError

    # Don't complain if non-runnable code isn't run:
    if __name__ == .__main__.:
    if self\.aggressive
    if self\.parent and \(not hasattr\(self, "database"\) or not self\.database\):
    if self\.parent:
    if not subject or not isinstance\(subject, str\):
    if tcp is None:

    # Don't complain for those blocks
    PyFunceble\.CONFIGURATION\.db_type == "mariadb"
    PyFunceble\.CONFIGURATION\.db_type in \["mariadb", "mysql"\]

    # Don't complain about those.
    _json
    _mysql
    _sqlite
    PyFunceble\.Logger\(\)
    Logger\(\)


ignore_errors = True

[html]
directory = coverage_html_report
