def configure():
"""
Kick things off and configure all the things.
A guess is made as to whether the entrypoint is coming from Click
or from another invocation of `configure()`. If Click, we're able
to pass along the Click context object.
"""
from .settings import discover_configs, configure
try:
ctx = click.get_current_context()
except RuntimeError:
ctx = None
_, py, yaml = discover_configs(ctx)
# TODO(mattrobenolt): Surface this also as a CLI option?
skip_backend_validation = 'SENTRY_SKIP_BACKEND_VALIDATION' in os.environ
configure(ctx, py, yaml, skip_backend_validation)
评论列表
文章目录