mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
Add consistent period in options documentation (#7725)
This commit is contained in:
parent
1646939383
commit
c782770e90
2 changed files with 5 additions and 5 deletions
|
@ -138,7 +138,7 @@ pub struct Options {
|
||||||
default = "false",
|
default = "false",
|
||||||
value_type = "bool",
|
value_type = "bool",
|
||||||
example = r#"
|
example = r#"
|
||||||
# Enable preview features
|
# Enable preview features.
|
||||||
preview = true
|
preview = true
|
||||||
"#
|
"#
|
||||||
)]
|
)]
|
||||||
|
@ -577,7 +577,7 @@ pub struct LintOptions {
|
||||||
default = "false",
|
default = "false",
|
||||||
value_type = "bool",
|
value_type = "bool",
|
||||||
example = r#"
|
example = r#"
|
||||||
# Require explicit selection of preview rules
|
# Require explicit selection of preview rules.
|
||||||
explicit-preview-rules = true
|
explicit-preview-rules = true
|
||||||
"#
|
"#
|
||||||
)]
|
)]
|
||||||
|
@ -1821,7 +1821,7 @@ pub struct IsortOptions {
|
||||||
default = r#"0"#,
|
default = r#"0"#,
|
||||||
value_type = "int",
|
value_type = "int",
|
||||||
example = r#"
|
example = r#"
|
||||||
# Use a single line between direct and from import
|
# Use a single line between direct and from import.
|
||||||
lines-between-types = 1
|
lines-between-types = 1
|
||||||
"#
|
"#
|
||||||
)]
|
)]
|
||||||
|
@ -2096,7 +2096,7 @@ pub struct Pep8NamingOptions {
|
||||||
///
|
///
|
||||||
/// Supports glob patterns. For example, to ignore all names starting with
|
/// Supports glob patterns. For example, to ignore all names starting with
|
||||||
/// or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`.
|
/// or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`.
|
||||||
/// 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).
|
||||||
#[option(
|
#[option(
|
||||||
default = r#"[]"#,
|
default = r#"[]"#,
|
||||||
value_type = "list[str]",
|
value_type = "list[str]",
|
||||||
|
|
2
ruff.schema.json
generated
2
ruff.schema.json
generated
|
@ -2034,7 +2034,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extend-ignore-names": {
|
"extend-ignore-names": {
|
||||||
"description": "Additional names (or patterns) to ignore when considering `pep8-naming` violations, in addition to those included in `ignore-names`\n\nSupports glob patterns. For example, to ignore all names starting with or ending with `_test`, you could use `ignore-names = [\"test_*\", \"*_test\"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax)..",
|
"description": "Additional names (or patterns) to ignore when considering `pep8-naming` violations, in addition to those included in `ignore-names`\n\nSupports glob patterns. For example, to ignore all names starting with or ending with `_test`, you could use `ignore-names = [\"test_*\", \"*_test\"]`. For 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…
Add table
Add a link
Reference in a new issue