From 6b356e8d1dabf55a993467cb57f0386c4a053f5b Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Thu, 26 Oct 2023 12:39:18 +0900 Subject: [PATCH] Discard changes to crates/ruff_python_formatter/src/lib.rs --- crates/ruff_python_formatter/src/lib.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/crates/ruff_python_formatter/src/lib.rs b/crates/ruff_python_formatter/src/lib.rs index 9f360b230cc73..7697789fe072c 100644 --- a/crates/ruff_python_formatter/src/lib.rs +++ b/crates/ruff_python_formatter/src/lib.rs @@ -206,11 +206,14 @@ if True: #[test] fn quick_test() { let source = r#" -def foo(): - while ( - aaaaaaaaaaaaaaaaaaaaa(bbbbbbbb, cccccccccccccc) and dddddddddd < eeeeeeeeeeeeeee - ): - 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; let (tokens, comment_ranges) = tokens_and_ranges(source, source_type).unwrap();