Switched from PyYAML to ruamel.yaml for comment-preserving config and improved example config layout.
CI / Formatting (push) Successful in 4s
CI / Linting (push) Successful in 8s
CI / Tests (Python 3.12) (push) Failing after 45s
CI / Tests (Python 3.13) (push) Successful in 38s
CI / Tests (Python 3.14) (push) Successful in 17s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-03-30 10:22:13 -04:00
parent 2face83f65
commit bb69285511
6 changed files with 113 additions and 161 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ from __future__ import annotations
import logging
from typing import TYPE_CHECKING, Any
import yaml
from ruamel.yaml.error import YAMLError
from . import OWNCAST_TARGET_VERSION, __version__
from .api.config import Config
@@ -60,7 +60,7 @@ class Owlbot:
# Load config. Raises StartupError on missing/invalid config.
try:
self.config = Config(config_path, overrides=overrides)
except (FileNotFoundError, ValueError, yaml.YAMLError, OSError) as e:
except (FileNotFoundError, ValueError, YAMLError, OSError) as e:
raise StartupError(str(e)) from e
self.modules_dir = self.config.modules_dir