docs: def get_config(config_file):
      """Get config file and parse YAML into dict."""
      config_path = os.path.abspath(config_file)
  
      try:
          with open(config_path, 'r') as data:
              config = yaml.safe_load(data)
      except IOError as exc:
          sys.exit(str(exc))
  
      return config