def load_config_from_path(ctx, config_path=None):
    config = None
    try:
        if config_path:
            config = LintConfig.load_from_file(config_path)
        elif os.path.exists(DEFAULT_CONFIG_FILE):
            config = LintConfig.load_from_file(DEFAULT_CONFIG_FILE)

    except LintConfigError as e:
        click.echo("Error during config file parsing: {0}".format(str(e)))
        ctx.exit(CONFIG_ERROR_CODE)

    return config
Tries loading the config from the given path. If no path is specified, the default config path
dataset/ETHPy150Open jorisroovers/gitlint/gitlint/cli.py/load_config_from_path