code: def get_options(config=None):
      
      if config is None:
          from . import config
          config.get = lambda key, default=None: getattr(config, key, default)
  
      base = {
          "components": config.get("COMPONENTS"),
          "signatures": config.get("SIGNATURES"),
          "commit_msg_template": config.get("COMMIT_MSG_TEMPLATE"),
          "commit_msg_labels": config.get("COMMIT_MSG_LABELS"),
          "alt_signatures": config.get("ALT_SIGNATURES"),
          "trusted": config.get("TRUSTED_DEVELOPERS"),
          "pep8": config.get("CHECK_PEP8", True),
          "pydocstyle": config.get("CHECK_PYDOCSTYLE", True),
          "license": config.get("CHECK_LICENSE", True),
          "pyflakes": config.get("CHECK_PYFLAKES", True),
          "ignore": config.get("IGNORE"),
          "select": config.get("SELECT"),
          "match": config.get("PYDOCSTYLE_MATCH"),
          "match_dir": config.get("PYDOCSTYLE_MATCH_DIR"),
          "min_reviewers": config.get("MIN_REVIEWERS"),
          "colors": config.get("COLORS", True),
          "excludes": config.get("EXCLUDES", []),
          "authors": config.get("AUTHORS"),
          "exclude_author_names": config.get("EXCLUDE_AUTHOR_NAMES"),
      }
      options = {}
      for k, v in base.items():
          if v is not None:
              options[k] = v
      return options
docs: Build the options from the config object.