mirror of https://github.com/astral-sh/ruff
Add pyproject.toml to include option doc (#5080)
Fixes an oversight where i didn't update this initially
This commit is contained in:
parent
c1fd2c8a8e
commit
916f0889f8
|
|
@ -288,7 +288,7 @@ pub struct Options {
|
||||||
/// re-exported with a redundant alias (e.g., `import os as os`).
|
/// re-exported with a redundant alias (e.g., `import os as os`).
|
||||||
pub ignore_init_module_imports: Option<bool>,
|
pub ignore_init_module_imports: Option<bool>,
|
||||||
#[option(
|
#[option(
|
||||||
default = r#"["*.py", "*.pyi"]"#,
|
default = r#"["*.py", "*.pyi", "**/pyproject.toml"]"#,
|
||||||
value_type = "list[str]",
|
value_type = "list[str]",
|
||||||
example = r#"
|
example = r#"
|
||||||
include = ["*.py"]
|
include = ["*.py"]
|
||||||
|
|
@ -297,7 +297,9 @@ pub struct Options {
|
||||||
/// A list of file patterns to include when linting.
|
/// A list of file patterns to include when linting.
|
||||||
///
|
///
|
||||||
/// Inclusion are based on globs, and should be single-path patterns, like
|
/// Inclusion are based on globs, and should be single-path patterns, like
|
||||||
/// `*.pyw`, to include any file with the `.pyw` extension.
|
/// `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is
|
||||||
|
/// included here not for configuration but because we lint whether e.g. the
|
||||||
|
/// `[project]` matches the schema.
|
||||||
///
|
///
|
||||||
/// For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).
|
/// For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).
|
||||||
pub include: Option<Vec<String>>,
|
pub include: Option<Vec<String>>,
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": {
|
"include": {
|
||||||
"description": "A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",
|
"description": "A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",
|
||||||
"type": [
|
"type": [
|
||||||
"array",
|
"array",
|
||||||
"null"
|
"null"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue