[run]
source = gammapy
omit =
   *tests*
   *setup_package*
   gammapy/version*
   gammapy/extern/*
   gammapy/conftest.py
   gammapy/_astropy_init.py
   gammapy/cython_version.py

   # Exclude some code that's only executed by the
   # notebook tests or docs build (not users)
   # from the coverage measurement
   gammapy/utils/tutorials_test.py
   gammapy/utils/tutorials_process.py
   gammapy/utils/docs.py
   gammapy/scripts/jupyter.py

[report]
exclude_lines =
   # Have to re-enable the standard pragma
   pragma: no cover

   # Don't complain about packages we have installed
   except ImportError

   # Don't complain if tests don't hit assertions
   raise AssertionError
   raise NotImplementedError

   # Don't complain about script hooks
   def main\(.*\):

   # Ignore branches that don't pertain to this version of Python
   pragma: py{ignore_python_version}
