{
  "$defs": {
    "FullRun": {
      "additionalProperties": false,
      "description": "`[full_run]`: files that force a full run.",
      "properties": {
        "extra": {
          "default": [],
          "description": "Extra globs that force a full run of the project when they change.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "OnUnobserved": {
      "enum": [
        "warn",
        "full"
      ],
      "type": "string"
    },
    "Project": {
      "description": "`[[project]]`: force an adapter of `kind` at `dir`.",
      "properties": {
        "dir": {
          "type": "string"
        },
        "kind": {
          "description": "`python`, `js`, `rust`, `go`, `dart`, `jvm`, `swift`, `zig`, `ruby`, `php`, `dotnet`, `elixir` or `sql` (plus `patrol`, `maestro`, `detox`, `android-instrumented`).",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "dir"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "`trimtest.toml`: every key is optional. Top-level keys must come before the first `[table]`.",
  "properties": {
    "full_run": {
      "$ref": "#/$defs/FullRun"
    },
    "ignore": {
      "default": [],
      "description": "Globs of files that are never tracked.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "import_roots": {
      "default": [],
      "description": "Extra directories (repo-relative) searched when resolving Python imports.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "map": {
      "additionalProperties": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "default": {},
      "description": "glob of changed files -> globs of tests to run (for E2E suites with no import link).",
      "type": "object"
    },
    "max_depth": {
      "default": null,
      "description": "How many directory levels deep project markers are searched for (default 6).",
      "format": "uint",
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    },
    "on_unobserved": {
      "$ref": "#/$defs/OnUnobserved",
      "description": "What to do with changed files no test is known to reach: `warn` (default) lists them,\n`full` runs everything (same as `--strict`)."
    },
    "project": {
      "description": "Explicit projects, for layouts marker detection cannot see.",
      "items": {
        "$ref": "#/$defs/Project"
      },
      "type": "array"
    },
    "respect_gitignore": {
      "default": true,
      "description": "Honour `.gitignore` when scanning (set to false to track gitignored generated sources).",
      "type": "boolean"
    },
    "runner": {
      "additionalProperties": {
        "type": "string"
      },
      "default": {},
      "description": "Command prefix per runner kind (`python`, `unittest`, `nose2`, `behave`, `js`, `jest`, `vitest`, `playwright`, `mocha`, `node-test`, `bun`, `deno`, `cypress`, `wdio`, `patrol`, `ruby`, `rspec`, `minitest`, `php`, `phpunit`, `pest`, `sql`, `pg_prove`, `psql`), e.g.\n`python = \"uv run\"`, `js = \"pnpm exec\"`. Overrides what is detected from lockfiles.",
      "type": "object"
    },
    "tests": {
      "default": [],
      "description": "Extra globs of files that are tests (for naming conventions trimtest does not know).",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "timeout": {
      "default": null,
      "description": "Kill a runner command that takes longer than this many seconds (and everything it started);\nthe tests it was running count as failed. `--timeout` overrides it. Unset or 0 = no limit.",
      "format": "uint64",
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    },
    "total_timeout": {
      "default": null,
      "description": "Seconds for the whole `trimtest run`; past it the running command is killed and the rest are not\nstarted, so their tests count as failed. `--total-timeout` overrides it. Unset or 0 = no limit.",
      "format": "uint64",
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "title": "trimtest.toml",
  "type": "object",
  "$id": "https://trimtest.dev/schema/trimtest.schema.json"
}
