diff --git a/crates/ty/docs/configuration.md b/crates/ty/docs/configuration.md index 4f4365a7f6..150e2ea16c 100644 --- a/crates/ty/docs/configuration.md +++ b/crates/ty/docs/configuration.md @@ -162,17 +162,17 @@ typeshed = "/path/to/custom/typeshed" #### `root` -The root(s) of the project, used for finding first-party modules. +The root of the project, used for finding first-party modules. **Default value**: `[".", "./src"]` -**Type**: `list[str]` +**Type**: `str` **Example usage** (`pyproject.toml`): ```toml [tool.ty.src] -root = ["./app"] +root = "./app" ``` --- diff --git a/crates/ty_project/src/metadata/options.rs b/crates/ty_project/src/metadata/options.rs index 730a7283ef..44428e4d1b 100644 --- a/crates/ty_project/src/metadata/options.rs +++ b/crates/ty_project/src/metadata/options.rs @@ -352,13 +352,13 @@ pub struct EnvironmentOptions { #[serde(rename_all = "kebab-case", deny_unknown_fields)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct SrcOptions { - /// The root(s) of the project, used for finding first-party modules. + /// The root of the project, used for finding first-party modules. #[serde(skip_serializing_if = "Option::is_none")] #[option( default = r#"[".", "./src"]"#, - value_type = "list[str]", + value_type = "str", example = r#" - root = ["./app"] + root = "./app" "# )] pub root: Option, diff --git a/ty.schema.json b/ty.schema.json index 783d34fb5a..5d54f5b2bc 100644 --- a/ty.schema.json +++ b/ty.schema.json @@ -839,7 +839,7 @@ "type": "object", "properties": { "root": { - "description": "The root(s) of the project, used for finding first-party modules.", + "description": "The root of the project, used for finding first-party modules.", "type": [ "string", "null"