code: def get_rulesets():
      
      Get available rulesets.
      """
      rulesets_dirs = get_ruleset_dirs()
      ruleset_files = []
      for rulesets_dir in rulesets_dirs:
          for f in os.listdir(rulesets_dir):
              for ext in EXTS:
                  file_path = os.path.join(rulesets_dir, f)
                  if os.path.isfile(file_path) and f.lower().endswith(ext):
                      ruleset_files.append((f[:-len(ext)], file_path))
      return ruleset_files
docs: Get available rulesets.