devops.config
DevOps config package.
- class devops.config.Constants(github=GitConstants(github_url='https://github.com', github_devops_repo='https://github.com/MolarVerse/devops', github_devops_issues_url='https://github.com/MolarVerse/devops/issues'), files=FileConstants(default_toml_template='devops.toml.template', toml_filenames=['devops.toml', '.devops.toml']))[source]
Bases:
objectClass holding constant values for DevOps checks.
- Parameters:
github (GitConstants)
files (FileConstants)
- github: GitConstants = GitConstants(github_url='https://github.com', github_devops_repo='https://github.com/MolarVerse/devops', github_devops_issues_url='https://github.com/MolarVerse/devops/issues')
- files: FileConstants = FileConstants(default_toml_template='devops.toml.template', toml_filenames=['devops.toml', '.devops.toml'])
- class devops.config.CppConfig(style_checks=True, license_header_check=True, license_header=None, check_only_staged_files=False, check_dirs=<factory>, exclude_dirs=<factory>, header_guards_according_to_filepath=False, header_guard_pattern=None, ast_checks=True, ast_check_compile_args=<factory>, ast_check_compile_commands_db=None, ast_check_enabled_ids=<factory>, ast_check_disabled_ids=<factory>, ast_check_config=<factory>, forbidden_spellings=<factory>, incremental_state_file=None, fail_fast=True, parallel_jobs=1)[source]
Bases:
objectDataclass to hold C++ configuration values.
- Parameters:
style_checks (bool)
license_header_check (bool)
license_header (str | None)
check_only_staged_files (bool)
header_guards_according_to_filepath (bool)
header_guard_pattern (str | None)
ast_checks (bool)
ast_check_compile_commands_db (str | None)
forbidden_spellings (dict[str, ForbiddenSpelling])
incremental_state_file (str | None)
fail_fast (bool)
parallel_jobs (int)
- forbidden_spellings: dict[str, ForbiddenSpelling]
- class devops.config.GitConfig(tag_prefix='', empty_tag_list_allowed=True)[source]
Bases:
objectDataclass to hold default git configuration values.
- class devops.config.ReleaseConfig(branch='main', ci_workflows=<factory>, ci_timeout=1800, ci_interval=20)[source]
Bases:
objectDataclass to hold release configuration values.
- devops.config.init_config()[source]
Initialize global config paths.
- Returns:
GlobalConfig – The initialized global configuration object.
- Return type:
Modules
Base configuration utilities. |
|
Module for reading and parsing configuration files. |
|
Module for parsing C++ configuration. |
|
Module to parse file configuration values. |
|
Git configuration parsing module. |
|
Module for logging configuration. |
|
Release configuration parsing module. |
|
Constants for DevOps checks. |
|
Module for handling TOML files in a DevOps context. |