Configuration¶
magetools.config.MageToolsConfig
¶
Configuration loader for magetools.
Source code in src/magetools/config.py
db_path
property
¶
Absolute path to the database folder.
magetools_root
property
¶
Absolute path to the .magetools directory.
validate(require_magetools_dir=False)
¶
Validate configuration and return list of warnings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
require_magetools_dir
|
bool
|
If True, raises ConfigurationError if .magetools doesn't exist. |
False
|
Returns:
| Type | Description |
|---|---|
list[str]
|
List of warning messages (non-fatal issues). |