mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +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",
|
||||
value_type = "bool",
|
||||
example = r#"
|
||||
# Enable preview features
|
||||
# Enable preview features.
|
||||
preview = true
|
||||
"#
|
||||
)]
|
||||
|
@ -577,7 +577,7 @@ pub struct LintOptions {
|
|||
default = "false",
|
||||
value_type = "bool",
|
||||
example = r#"
|
||||
# Require explicit selection of preview rules
|
||||
# Require explicit selection of preview rules.
|
||||
explicit-preview-rules = true
|
||||
"#
|
||||
)]
|
||||
|
@ -1821,7 +1821,7 @@ pub struct IsortOptions {
|
|||
default = r#"0"#,
|
||||
value_type = "int",
|
||||
example = r#"
|
||||
# Use a single line between direct and from import
|
||||
# Use a single line between direct and from import.
|
||||
lines-between-types = 1
|
||||
"#
|
||||
)]
|
||||
|
@ -2096,7 +2096,7 @@ pub struct Pep8NamingOptions {
|
|||
///
|
||||
/// Supports 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)..
|
||||
/// For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).
|
||||
#[option(
|
||||
default = r#"[]"#,
|
||||
value_type = "list[str]",
|
||||
|
|
2
ruff.schema.json
generated
2
ruff.schema.json
generated
|
@ -2034,7 +2034,7 @@
|
|||
}
|
||||
},
|
||||
"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": [
|
||||
"array",
|
||||
"null"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue