()
| 106 | |
| 107 | |
| 108 | def gather_aura_information() -> dict: |
| 109 | info = { |
| 110 | "aura_version": version, |
| 111 | "analyzers": {}, |
| 112 | "integrations": {}, |
| 113 | "uri_handlers": {}, |
| 114 | "schema_validation": check_schema() |
| 115 | } |
| 116 | |
| 117 | analyzers = plugins.load_entrypoint("aura.analyzers") |
| 118 | |
| 119 | for k, v in analyzers["entrypoints"].items(): |
| 120 | doc = get_analyzer_description(v) |
| 121 | info["analyzers"][k] = { |
| 122 | "enabled": True, |
| 123 | "description": doc |
| 124 | } |
| 125 | |
| 126 | for k, v in analyzers["disabled"]: |
| 127 | info["analyzers"][k] = { |
| 128 | "enabled": False, |
| 129 | "description": v |
| 130 | } |
| 131 | |
| 132 | uris = URIHandler.load_handlers(ignore_disabled=False) |
| 133 | |
| 134 | for k, v in uris.pop("disabled", {}).items(): |
| 135 | info["uri_handlers"][k] = {"enabled": False, "description": v} |
| 136 | |
| 137 | for k, v in uris.items(): |
| 138 | info["uri_handlers"][k] = {"enabled": True} |
| 139 | |
| 140 | info["integrations"]["pypi_stats"] = check_pypi_stats() |
| 141 | info["integrations"]["reverse_dependencies"] = check_reverse_dependencies() |
| 142 | info["integrations"]["git"] = check_git() |
| 143 | info["integrations"]["github"] = check_github_api() |
| 144 | |
| 145 | return info |
| 146 | |
| 147 | |
| 148 | if __name__ == "__main__": |
no test coverage detected