diff --git a/crates/ruff_python_formatter/src/lib.rs b/crates/ruff_python_formatter/src/lib.rs index ada297f0efa74..fcb512c63c16c 100644 --- a/crates/ruff_python_formatter/src/lib.rs +++ b/crates/ruff_python_formatter/src/lib.rs @@ -188,10 +188,14 @@ if True: #[test] fn quick_test() { let source = r#" -def foo(* - # comment - arg): - pass +def main() -> None: + if True: + some_very_long_variable_name_abcdefghijk = Foo() + some_very_long_variable_name_abcdefghijk = some_very_long_variable_name_abcdefghijk[ + some_very_long_variable_name_abcdefghijk.some_very_long_attribute_name + == "This is a very long string abcdefghijk" + ] + "#; let source_type = PySourceType::Python;