Configuration File
Every devops command reads its defaults from a single TOML configuration
file. This page is the complete reference for that file: where it’s
discovered, every section and key it supports, and the exact defaults used
when a key (or the whole file) is missing.
Discovery
On startup, devops looks in the current working directory for:
devops.toml.devops.toml
If exactly one of these files exists, it is loaded and parsed.
If neither exists, the built-in defaults documented below are used.
If both exist, a warning is logged and the built-in defaults are used — the ambiguity is intentionally not resolved automatically.
There is no parent-directory search: the file must sit in the directory the command is run from.
Generating a starting point
Rather than writing the file by hand, run:
generate_toml_template
This writes devops.toml.template in the current directory containing
every key below, commented out, set to its default value. Rename it to
devops.toml (or .devops.toml) and uncomment/edit what you need to
override.
Reference
Keys are optional unless stated otherwise — anything omitted falls back to its default.
[exclude]
Controls which files are excluded from checks.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
list of strings |
|
Macro names that mark a file as affected by a known compiler bug.
filter_buggy_cpp_files excludes
any file that calls one of these macros (matched as a whole word
immediately followed by |
[exclude]
buggy_cpp_macros = ["MACRO_A", "MACRO_B"]
[logging]
Per-subsystem log levels. Valid values: NONE, DEBUG, INFO,
WARNING, ERROR, CRITICAL.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Root logger level. |
|
string |
|
Level for the |
|
string |
|
Level for the configuration-loading subsystem itself. |
|
string |
|
Level for the C++ checks subsystem. |
[logging]
global_level = "INFO"
cpp_level = "DEBUG"
[git]
Controls how Git tags are parsed by get_latest_tag and increase_latest_tag.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Prefix expected before the |
|
boolean |
|
If |
[git]
tag_prefix = "v"
empty_tag_list_allowed = true
[cpp]
Controls the checks run by cpp_checks.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
boolean |
|
Enable header guard presence checks and keyword-order checks (e.g.
|
|
boolean |
|
Enable verifying that files start with the configured license
header. Has no effect if |
|
string or unset |
unset |
Path to a file whose contents must appear at the top of every C++
source/header file. Required for |
|
boolean |
|
Restrict checks to files currently staged in Git (for pre-commit
hook usage).
The |
|
list of strings |
|
If non-empty, only files under these directories (relative to the
current working directory, glob patterns supported) are checked.
Ignored when |
|
list of strings |
|
Directory names to skip during recursive scanning, regardless of
whether |
|
boolean |
|
Additionally require the header guard macro name to match a name derived from the file’s path, not just be present. |
|
string or unset |
unset |
Format string used to build the expected header guard macro name
when |
|
table of string -> string |
|
Dictionary of spellings that must not appear in C++ files, mapped to
the spelling to use instead ( |
|
boolean |
|
Enable libclang AST-based checks (see below). Requires the optional
|
|
list of strings |
|
Compiler flags passed to libclang when parsing files for AST checks
(e.g. C++ standard, include paths). Used as a fallback when
|
|
string or unset |
unset |
Path to the directory containing |
|
list of strings |
|
If non-empty, only AST checks whose |
|
list of strings |
|
AST checks whose |
|
string or unset |
unset |
Path to a JSON file used to persist per-file check results between
runs. When set, |
|
boolean |
|
When |
An id in ast_check_enabled_ids/ast_check_disabled_ids that matches
no known check — a typo, or a check that only exists in a newer devops
version than the one actually installed — raises a ConfigError and
stops the run, rather than silently running with fewer checks than
configured. If you see this unexpectedly, check that cpp_checks is
resolving to the devops install you expect (e.g. a project-local
virtualenv), not a stale copy earlier on PATH.
[cpp]
style_checks = true
license_header_check = true
license_header = "LICENSE_HEADER.txt"
check_only_staged_files = false
check_dirs = ["src", "include", "tests"]
exclude_dirs = ["build", ".build"]
header_guards_according_to_filepath = true
header_guard_pattern = "{path}_{ext}_GUARD"
ast_checks = true
ast_check_compile_commands_db = ".build"
incremental_state_file = "build/.cpp_check_state.json"
fail_fast = false
[cpp.ast_check_config.<check-id>]
Per-check configuration lives in sub-tables of [cpp.ast_check_config],
one sub-table per check id. Each check defines its own keys; unknown keys are
silently ignored. See AST-Based C++ Checks for what each check flags and
its full configuration reference (memberLeadingUnderscore,
memberFunctionLeadingUnderscore, paramNameForType,
macroReplacement, noGlobalUsing, noGlobalUsingEnum,
noThrowParen).
Every check, regardless of its own keys, additionally accepts
exclude_paths: a list of path patterns for files the check must not run
on (the other checks still do). A pattern ending in / excludes a whole
directory anywhere in the path (including subdirectories); any other pattern
is an fnmatch glob matched against the trailing path components, so
"src/units/*.cpp" works regardless of the absolute prefix. A file that
every enabled check excludes is not even parsed. To skip a directory for
all checks, use exclude_dirs instead.
[cpp.ast_check_config.noFinalKeyword]
exclude_paths = ["src/legacy/", "include/generated/*.hpp"]
[file]
Controls changelog file handling and text encoding.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Encoding used to read/write changelog files. Must be a valid Python codec name; an invalid value fails config loading immediately. |
|
string or list of strings |
|
The changelog file(s) managed by update_changelogs. A single string is accepted and treated as a one-element list. |
|
string or unset |
first entry of |
Which changelog update_changelog writes
to when |
[file]
encoding = "utf-8"
changelog_paths = ["CHANGELOG.md"]
default_changelog_path = "CHANGELOG.md"
[release]
Controls the CI gate of devops_release. Tags use
git.tag_prefix.
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
The branch releases are published from; |
|
list of strings |
|
Workflow files, for example |
|
integer |
|
Seconds |
|
integer |
|
Seconds between two polls. Must be positive. |
[release]
branch = "main"
ci_workflows = ["ci.yml"]
ci_timeout = 1800
ci_interval = 20
Full example
[exclude]
buggy_cpp_macros = ["OLD_COMPILER_WORKAROUND"]
[logging]
global_level = "INFO"
cpp_level = "DEBUG"
[git]
tag_prefix = "v"
empty_tag_list_allowed = true
[cpp]
style_checks = true
license_header_check = true
license_header = "LICENSE_HEADER.txt"
header_guards_according_to_filepath = true
check_dirs = ["src", "include", "tests"]
ast_checks = true
ast_check_compile_commands_db = ".build"
[cpp.ast_check_config.paramNameForType]
type_to_name = { "molsys::SimulationBox" = "simulationBox" }
unseen_type_is_error = true
[file]
encoding = "utf-8"
changelog_paths = ["CHANGELOG.md"]
[release]
ci_workflows = ["ci.yml"]
Changelog file format
The [file] section governs which changelog files are managed, but the
changelog itself has one structural requirement:
update_changelog and
update_changelogs need a ## Next Release
heading followed by an <!-- insertion marker --> comment. A new entry is
inserted directly below the heading and above the marker on every run:
# Changelog
## Next Release
<!-- insertion marker -->
## [0.1.4](https://github.com/OWNER/REPO/releases/tag/0.1.4) - 2026-09-13
...