Initialize the configuration manager.
(self)
| 45 | """ |
| 46 | |
| 47 | def __init__(self): |
| 48 | """Initialize the configuration manager.""" |
| 49 | self._api_key: Optional[str] = None |
| 50 | self._config: Optional[Configuration] = None |
| 51 | self._force_no_keyring = os.environ.get("CODEWIKI_NO_KEYRING", "").strip() in ("1", "true", "yes") |
| 52 | self._keyring_available = self._check_keyring_available() |
| 53 | |
| 54 | def _check_keyring_available(self) -> bool: |
| 55 | """Check if system keyring is available.""" |
nothing calls this directly
no test coverage detected