mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +00:00
Use line-length
setting for isort (#8235)
This commit is contained in:
parent
6983d96d27
commit
133a745de1
5 changed files with 7 additions and 3 deletions
|
@ -228,6 +228,7 @@ impl Configuration {
|
|||
.unwrap_or_else(|| DUMMY_VARIABLE_RGX.clone()),
|
||||
external: lint.external.unwrap_or_default(),
|
||||
ignore_init_module_imports: lint.ignore_init_module_imports.unwrap_or_default(),
|
||||
line_length,
|
||||
tab_size: self.indent_width.unwrap_or_default(),
|
||||
namespace_packages: self.namespace_packages.unwrap_or_default(),
|
||||
per_file_ignores: resolve_per_file_ignores(
|
||||
|
|
|
@ -352,7 +352,7 @@ pub struct Options {
|
|||
|
||||
// Global Formatting options
|
||||
/// The line length to use when enforcing long-lines violations (like `E501`)
|
||||
/// and at which the formatter prefers to wrap lines.
|
||||
/// and at which `isort` and the formatter prefers to wrap lines.
|
||||
///
|
||||
/// The 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue