def METHOD_NAME(config):
    global enable_coverage
    global no_full_cov
    enable_coverage = (
        config.getoption("file_or_dir")
        and len(config.getoption("file_or_dir")) == 0
        and config.getoption("full_cov")
        and len(config.getoption("full_cov")) > 0
        and config.pluginmanager.getplugin("_cov") is not None
        and config.pluginmanager.getplugin("_cov").cov_controller is not None
        and config.pluginmanager.getplugin("_cov").cov_controller.cov is not None
    )
    c = configparser.ConfigParser()
    c.read(os.path.join(here, "..", "setup.cfg"))
    fs = c["tool:full_coverage"]["exclude"].split("\n")
    no_full_cov = config.option.no_full_cov + [f.strip() for f in fs]