Load a YAML config file from the config directory.
(filename: str)
| 354 | |
| 355 | config_file = os.path.join(CONFIG_PATH, filename) |
| 356 | if not os.path.exists(config_file): |
| 357 | return {} |
| 358 | with open(config_file, "r", encoding="utf-8") as f: |
| 359 | return yaml.safe_load(f) or {} |
| 360 | |
| 361 | |
| 362 | def get_default_arxiv_categories() -> List[str]: |
| 363 | """Use all arXiv categories currently supported by the fetcher.""" |
| 364 | categories = list(getattr(arxiv_fetcher, "CATEGORIES", {}).keys()) |
| 365 | return categories or ["cs.AI", "cs.LG", "cs.CV"] |
| 366 | |
| 367 |
no outgoing calls
no test coverage detected