Functions
check_yaml_syntax
Check YAML syntax for all config files.
check_yaml_syntax
def check_yaml_syntax(config_dir: Path, errors: list[str], warnings: list[str]) -> None
Check YAML syntax for all config files.
Parameters 3
| Name | Type | Default | Description |
|---|---|---|---|
config_dir |
Path |
— | |
errors |
list[str] |
— | |
warnings |
list[str] |
— |
validate_config_types
Validate config value types.
validate_config_types
def validate_config_types(config: dict[str, Any], errors: list[str], warnings: list[str]) -> None
Validate config value types.
Parameters 3
| Name | Type | Default | Description |
|---|---|---|---|
config |
dict[str, Any] |
— | |
errors |
list[str] |
— | |
warnings |
list[str] |
— |
validate_config_values
Validate config values and ranges.
validate_config_values
def validate_config_values(config: dict[str, Any], environment: str, errors: list[str], warnings: list[str]) -> None
Validate config values and ranges.
Parameters 4
| Name | Type | Default | Description |
|---|---|---|---|
config |
dict[str, Any] |
— | |
environment |
str |
— | |
errors |
list[str] |
— | |
warnings |
list[str] |
— |
check_unknown_keys
Check for unknown/typo keys.
check_unknown_keys
def check_unknown_keys(config: dict[str, Any], warnings: list[str]) -> None
Check for unknown/typo keys.
Parameters 2
| Name | Type | Default | Description |
|---|---|---|---|
config |
dict[str, Any] |
— | |
warnings |
list[str] |
— |