ruff/crates/ruff_python_formatter/tests/snapshots
Brent Westbrook 0115fd3757
Some checks are pending
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (macos) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / ty completion evaluation (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks instrumented (ruff) (push) Blocked by required conditions
CI / benchmarks instrumented (ty) (push) Blocked by required conditions
CI / benchmarks walltime (medium|multithreaded) (push) Blocked by required conditions
CI / benchmarks walltime (small|large) (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
Avoid reusing nested, interpolated quotes before Python 3.12 (#20930)
## Summary

Fixes #20774 by tracking whether an `InterpolatedStringState` element is
nested inside of another interpolated element. This feels like kind of a
naive fix, so I'm welcome to other ideas. But it resolves the problem in
the issue and clears up the syntax error in the black compatibility
test, without affecting many other cases.

The other affected case is actually interesting too because the
[input](96b156303b/crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/fstring.py (L707))
is invalid, but the previous quote selection fixed the invalid syntax:

```pycon
Python 3.11.13 (main, Sep  2 2025, 14:20:25) [Clang 20.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> f'{1: abcd "{'aa'}" }'  # input
  File "<stdin>", line 1
    f'{1: abcd "{'aa'}" }'
                  ^^
SyntaxError: f-string: expecting '}'
>>> f'{1: abcd "{"aa"}" }'  # old output
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Invalid format specifier ' abcd "aa" ' for object of type 'int'
>>> f'{1: abcd "{'aa'}" }'  # new output
  File "<stdin>", line 1
    f'{1: abcd "{'aa'}" }'
                  ^^
SyntaxError: f-string: expecting '}'
```

We now preserve the invalid syntax in the input.

Unfortunately, this also seems to be another edge case I didn't consider
in https://github.com/astral-sh/ruff/pull/20867 because we don't flag
this as a syntax error after 0.14.1:

<details><summary>Shell output</summary>
<p>

```
> uvx ruff@0.14.0 check --ignore ALL --target-version py311 - <<EOF
f'{1: abcd "{'aa'}" }'
EOF
invalid-syntax: Cannot reuse outer quote character in f-strings on Python 3.11 (syntax was added in Python 3.12)
 --> -:1:14
  |
1 | f'{1: abcd "{'aa'}" }'
  |              ^
  |

Found 1 error.
> uvx ruff@0.14.1 check --ignore ALL --target-version py311 - <<EOF
f'{1: abcd "{'aa'}" }'
EOF
All checks passed!
> uvx python@3.11 -m ast <<EOF
f'{1: abcd "{'aa'}" }'
EOF
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/brent/.local/share/uv/python/cpython-3.11.13-linux-x86_64-gnu/lib/python3.11/ast.py", line 1752, in <module>
    main()
  File "/home/brent/.local/share/uv/python/cpython-3.11.13-linux-x86_64-gnu/lib/python3.11/ast.py", line 1748, in main
    tree = parse(source, args.infile.name, args.mode, type_comments=args.no_type_comments)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/brent/.local/share/uv/python/cpython-3.11.13-linux-x86_64-gnu/lib/python3.11/ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<stdin>", line 1
    f'{1: abcd "{'aa'}" }'
                  ^^
SyntaxError: f-string: expecting '}'
```

</p>
</details> 


I assumed that was the same `ParseError` as the one caused by
`f"{1:""}"`, but this is a nested interpolation inside of the format
spec.

## Test Plan

New test copied from the black compatibility test. I guess this is a
duplicate now, I started working on this branch before the new black
tests were imported, so I could delete the separate test in our fixtures
if that's preferable.
2025-10-17 08:49:16 -04:00
..
black_compatibility@cases__allow_empty_first_line.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__backslash_before_indent.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__cantfit.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__class_blank_parentheses.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comment_after_escaped_newline.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments2.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments6.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments9.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments_in_blocks.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments_in_double_parens.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__composition.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__composition_no_trailing_comma.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__conditional_expression.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__docstring_no_string_normalization.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__dummy_implementations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__empty_lines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__expression.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__f_docstring.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__fmtonoff.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtonoff4.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtonoff5.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__fmtpass_imports.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtskip5.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtskip9.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtskip10.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__form_feeds.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fstring.py.snap Avoid reusing nested, interpolated quotes before Python 3.12 (#20930) 2025-10-17 08:49:16 -04:00
black_compatibility@cases__fstring_quotations.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__function.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__function2.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__function_trailing_comma.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__generics_wrapping.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__ignore_pyi.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__keep_newline_after_match.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__line_ranges_diff_edge_case.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__long_strings__type_annotations.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__long_strings_flag_disabled.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__nested_stub.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__pattern_matching_style.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__pattern_matching_trailing_comma.py.snap Preserve tuple parentheses in case patterns (#18147) 2025-05-22 07:52:21 +02:00
black_compatibility@cases__pattern_matching_with_if_stmt.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__pep604_union_types_line_breaks.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__pep_572_remove_parens.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__pep_701.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__prefer_rhs_split.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__prefer_rhs_split_reformatted.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_cantfit.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_cantfit_string.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_comments7.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_import_line_collapse.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_long_dict_values.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_long_strings.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_long_strings__east_asian_width.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_long_strings__edge_case.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_long_strings__regression.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_long_strings__type_annotations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_multiline_strings.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_remove_multiline_lone_list_item_parens.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__preview_return_annotation_brackets_string.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_wrap_comprehension_in.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__raw_docstring.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__raw_docstring_no_string_normalization.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_await_parens.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_except_parens.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_for_brackets.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_lone_list_item_parens.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@cases__remove_newline_after_code_block_open.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__return_annotation_brackets.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__stub.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__torture.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__trailing_commas_in_leading_parts.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__tupleassign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__type_param_defaults.py.snap Update Black tests (#20794) 2025-10-14 10:14:59 -04:00
black_compatibility@miscellaneous__blackd_diff.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@miscellaneous__debug_visitor.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@miscellaneous__string_quotes.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@blank_line_before_class_docstring.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@carriage_return__string.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@docstring.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@docstring_chaperones.py.snap Don't add chaperone space after escaped quote in triple quote (#17216) 2025-04-11 10:21:47 +02:00
format@docstring_code_examples.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@docstring_code_examples_crlf.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@docstring_code_examples_dynamic_line_width.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@docstring_newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@docstring_non_visible_characters.py.snap Fix typos found by codespell (#14863) 2024-12-09 09:32:12 +00:00
format@docstring_tab_indentation.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@empty_multiple_trailing_newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@empty_now_newline.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@empty_trailing_newline.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@empty_whitespace.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__annotated_assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__attribute.py.snap Fix unstable formatting of trailing end-of-line comments of parenthesized attribute values (#16187) 2025-02-18 08:43:51 +01:00
format@expression__await.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__binary.py.snap Implement template strings (#17851) 2025-05-30 15:00:56 -05:00
format@expression__binary_implicit_string.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@expression__binary_pow_spacing.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__boolean_operation.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__bytes.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@expression__call.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__compare.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__dict.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__dict_comp.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__fstring.py.snap Avoid reusing nested, interpolated quotes before Python 3.12 (#20930) 2025-10-17 08:49:16 -04:00
format@expression__fstring_preview.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@expression__generator_exp.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__hug.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__if.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__join_implicit_concatenated_string.py.snap Disallow implicit concatenation of t-strings and other string types (#19485) 2025-07-27 12:41:03 +00:00
format@expression__join_implicit_concatenated_string_assignment.py.snap Disallow implicit concatenation of t-strings and other string types (#19485) 2025-07-27 12:41:03 +00:00
format@expression__join_implicit_concatenated_string_preserve.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@expression__lambda.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__list.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__list_comp.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@expression__named_expr.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__number.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__optional_parentheses_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__set_comp.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__slice.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__split_empty_brackets.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__starred.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__string.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@expression__subscript.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__tstring.py.snap Disallow implicit concatenation of t-strings and other string types (#19485) 2025-07-27 12:41:03 +00:00
format@expression__tuple.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__unary.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__unsplittable.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__yield.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@expression__yield_from.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@f-string-carriage-return-newline.py.snap Fix \r and \r\n handling in t- and f-string debug texts (#18673) 2025-06-15 06:53:06 +01:00
format@fmt_on_off__comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__empty_file.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__fmt_off_docstring.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__form_feed.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__indent.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@fmt_on_off__last_statement.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__mixed_space_and_tab.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@fmt_on_off__newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__no_fmt_on.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__off_on_off_on.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__simple.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__trailing_semicolon.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__yapf.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__decorators.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__docstrings.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__match.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__or_else.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__parentheses.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__reason.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__trailing_semi.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__type_params.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@form_feed.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@module_dangling_comment1.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@module_dangling_comment2.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@multiline_string_deviations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@newlines.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@notebook_docstring.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@parentheses__call_chains.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__expression_parentheses_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__nested.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__opening_parentheses_comment_empty.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__opening_parentheses_comment_value.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@pattern__pattern_maybe_parenthesize.py.snap Preserve tuple parentheses in case patterns (#18147) 2025-05-22 07:52:21 +02:00
format@pattern_match_regression_brackets.py.snap Preserve tuple parentheses in case patterns (#18147) 2025-05-22 07:52:21 +02:00
format@preview.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@quote_style.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@range_formatting__ancestory.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__clause_header.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__comment_only_range.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__decorators.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__docstring_code_examples.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@range_formatting__empty_file.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__empty_range.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__end_of_file.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__fmt_on_off.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__indent.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@range_formatting__leading_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__leading_trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__module.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__parentheses.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__range_narrowing.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__regressions.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__same_line_body.py.snap Fix typos found by codespell (#14863) 2024-12-09 09:32:12 +00:00
format@range_formatting__stub.pyi.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@range_formatting__trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__whitespace_only_range.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@skip_magic_trailing_comma.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@statement__ann_assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__assert.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__assignment_split_value_first.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__aug_assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__break.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__class_definition.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__delete.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__ellipsis.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__for.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__function.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__global.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__if.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__import.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__import_from.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__long_type_annotations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__match.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__module_comment.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__nonlocal.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__raise.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__return.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__return_annotation.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__return_type_no_parameters.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__return_type_parameters.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__stub_functions_trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__top_level.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__top_level.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__try.py.snap Remove parentheses around multiple exception types on Python 3.14+ (#20768) 2025-10-14 11:17:45 -04:00
format@statement__type_alias.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__while.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__with.py.snap Fix syntax error false positives on parenthesized context managers (#20846) 2025-10-13 14:13:27 -04:00
format@statement__with_39.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@stub_files__blank_line_after_nested_stub_class.pyi.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@stub_files__blank_line_after_nested_stub_class_eof.pyi.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@stub_files__comments.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@stub_files__decorated_class_after_function.pyi.snap [formatter] Fix missing blank lines before decorated classes in .pyi files (#18888) 2025-06-24 16:25:44 +02:00
format@stub_files__nesting.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@stub_files__suite.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@stub_files__top_level.pyi.snap [formatter] Fix missing blank lines before decorated classes in .pyi files (#18888) 2025-06-24 16:25:44 +02:00
format@tab_width.py.snap Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
format@trailing_comments.py.snap Treat ty: comments as pragma comments (#18532) 2025-06-07 16:02:43 +02:00
format@trivia.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00