mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
docs: fix pycodestyle.max-line-length link (#10136)
This commit is contained in:
parent
5abf662365
commit
ab4bd71755
2 changed files with 2 additions and 2 deletions
|
@ -378,7 +378,7 @@ pub struct Options {
|
||||||
/// within the `line-length`, it isn't a hard upper bound, and formatted lines may
|
/// within the `line-length`, it isn't a hard upper bound, and formatted lines may
|
||||||
/// exceed the `line-length`.
|
/// exceed the `line-length`.
|
||||||
///
|
///
|
||||||
/// See [`pycodestyle.max-line-length`](#pycodestyle-max-line-length) to configure different lengths for `E501` and the formatter.
|
/// See [`pycodestyle.max-line-length`](#lint_pycodestyle_max-line-length) to configure different lengths for `E501` and the formatter.
|
||||||
#[option(
|
#[option(
|
||||||
default = "88",
|
default = "88",
|
||||||
value_type = "int",
|
value_type = "int",
|
||||||
|
|
2
ruff.schema.json
generated
2
ruff.schema.json
generated
|
@ -465,7 +465,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"line-length": {
|
"line-length": {
|
||||||
"description": "The line length to use when enforcing long-lines violations (like `E501`) and at which `isort` and the formatter prefers to wrap lines.\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nThe value must be greater than `0` and less than or equal to `320`.\n\nNote: While the formatter will attempt to format lines such that they remain within the `line-length`, it isn't a hard upper bound, and formatted lines may exceed the `line-length`.\n\nSee [`pycodestyle.max-line-length`](#pycodestyle-max-line-length) to configure different lengths for `E501` and the formatter.",
|
"description": "The line length to use when enforcing long-lines violations (like `E501`) and at which `isort` and the formatter prefers to wrap lines.\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nThe value must be greater than `0` and less than or equal to `320`.\n\nNote: While the formatter will attempt to format lines such that they remain within the `line-length`, it isn't a hard upper bound, and formatted lines may exceed the `line-length`.\n\nSee [`pycodestyle.max-line-length`](#lint_pycodestyle_max-line-length) to configure different lengths for `E501` and the formatter.",
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/LineLength"
|
"$ref": "#/definitions/LineLength"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue