black/tests/data/cases
2025-03-03 15:11:21 -08:00
..
allow_empty_first_line.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
annotations.py Add regression test for #1765 (#4530) 2024-12-23 10:46:25 -08:00
async_stmts.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
attribute_access_on_number_literals.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
backslash_before_indent.py tokenizer: skip lines that are just slash and whitespace (#4343) 2024-06-01 13:01:36 -07:00
beginning_backslash.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
bracketmatch.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
bytes_docstring.py Fix bytes strings being treated as docstrings (#4003) 2023-10-31 17:11:28 -07:00
cantfit.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
class_blank_parentheses.py Allow empty lines at beginnings of more blocks (#4130) 2024-01-01 15:46:09 -08:00
class_methods_new_line.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
collections.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
comment_after_escaped_newline.py tokenizer: skip lines that are just slash and whitespace (#4343) 2024-06-01 13:01:36 -07:00
comment_type_hint.py test preview cases with line-length 1 unless explicitly skipped (#4087) 2023-12-06 07:17:33 -08:00
comments2.py test preview cases with line-length 1 unless explicitly skipped (#4087) 2023-12-06 07:17:33 -08:00
comments3.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
comments4.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
comments5.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
comments6.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
comments8.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
comments9.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
comments_in_blocks.py [563] Fix standalone comments inside complex blocks crashing Black (#4016) 2023-11-07 11:29:24 -08:00
comments_in_double_parens.py fix: Don't remove comments along with parens (#4218) 2024-02-12 06:27:50 -08:00
comments_non_breaking_space.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
comments.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
composition_no_trailing_comma.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
composition.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
conditional_expression.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
context_managers_38.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
context_managers_39.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
context_managers_autodetect_38.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
context_managers_autodetect_39.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
context_managers_autodetect_310.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
context_managers_autodetect_311.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
docstring_newline.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
docstring_no_extra_empty_line_before_eof.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
docstring_no_string_normalization.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
docstring_preview.py Fix crash with f-string docstrings (#4019) 2023-11-06 16:58:43 -08:00
docstring.py Produce equivalent code for docstrings containing backslash followed by whitespace(s) before newline (#4008) 2023-10-31 08:27:11 -07:00
dummy_implementations.py Add support to style function definitions with newlines before function stubs (#4318) 2024-04-23 19:19:56 -07:00
empty_lines.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
expression.diff Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
expression.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
f_docstring.py Fix crash with f-string docstrings (#4019) 2023-11-06 16:58:43 -08:00
fmtonoff2.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtonoff3.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtonoff4.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtonoff5.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
fmtonoff6.py Make sure Black doesn't crash when fmt:off is used before a closing paren (#4363) 2024-05-15 20:32:27 -04:00
fmtonoff.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
fmtpass_imports.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtskip2.py test preview cases with line-length 1 unless explicitly skipped (#4087) 2023-12-06 07:17:33 -08:00
fmtskip3.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtskip4.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtskip5.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtskip6.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtskip7.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtskip8.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
fmtskip9.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
fmtskip10.py Fix bug where # fmt: skip is not being respected with one-liner functions (#4552) 2025-03-03 15:11:21 -08:00
fmtskip.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
form_feeds.py tokenizer: skip lines that are just slash and whitespace (#4343) 2024-06-01 13:01:36 -07:00
format_unicode_escape_seq.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
fstring_quotations.py Add regression tests for Black’s previous inconsistent quote formatting with adjacent string literals (#4580) 2025-03-02 19:23:58 -08:00
fstring.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
funcdef_return_type_trailing_comma.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
function2.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
function_trailing_comma.py Fix crashes with comments in parentheses (#4453) 2024-09-15 19:34:02 -07:00
function.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
generics_wrapping.py Improve function declaration wrapping when it contains generic type definitions (#4553) 2025-01-26 00:43:22 -08:00
ignore_pyi.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
import_spacing.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
is_simple_lookup_for_doublestar_expression.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
keep_newline_after_match.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
line_ranges_basic.py Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
line_ranges_diff_edge_case.py Disable the stability check with --line-ranges for now. (#4034) 2023-11-20 20:45:39 -08:00
line_ranges_exceeding_end.py Fix --line-ranges behavior when ranges are at EOF (#4273) 2024-03-15 11:18:47 -07:00
line_ranges_fmt_off_decorator.py Fix: --line-ranges dedents a # fmt: off in the middle of a decorator (#4084) 2023-12-04 10:10:03 -08:00
line_ranges_fmt_off_overlap.py Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
line_ranges_fmt_off.py Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
line_ranges_imports.py Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
line_ranges_indentation.py Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
line_ranges_outside_source.py Fix --line-ranges behavior when ranges are at EOF (#4273) 2024-03-15 11:18:47 -07:00
line_ranges_two_passes.py Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
line_ranges_unwrapping.py Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
linelength6.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
long_strings__type_annotations.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
long_strings_flag_disabled.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
module_docstring_1.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
module_docstring_2.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
module_docstring_3.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
module_docstring_4.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
module_docstring_followed_by_class.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
module_docstring_followed_by_function.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
multiline_consecutive_open_parentheses_ignore.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
nested_stub.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
no_blank_line_before_docstring.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
numeric_literals_skip_underscores.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
numeric_literals.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
one_element_subscript.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
parenthesized_context_managers.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pattern_matching_complex.py Fix formatting for if clauses in match-case blocks (#4269) 2024-03-16 07:38:07 -07:00
pattern_matching_extras.py Fix long case blocks not split into multiple lines (#4024) 2023-11-07 06:31:58 -08:00
pattern_matching_generic.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pattern_matching_long.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
pattern_matching_simple.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pattern_matching_style.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pattern_matching_trailing_comma.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
pattern_matching_with_if_stmt.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
pep604_union_types_line_breaks.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
pep646_typed_star_arg_type_var_tuple.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
pep_570.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
pep_572_do_not_remove_parens.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pep_572_py39.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
pep_572_py310.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
pep_572_remove_parens.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
pep_572_slices.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
pep_572.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
pep_604.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pep_646.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pep_654_style.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pep_654.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
pep_701.py fix: respect braces better in f-string parsing (#4422) 2024-08-02 09:21:39 -07:00
percent_precedence.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
power_op_newline.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
power_op_spacing_long.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
power_op_spacing.py Fix long lines with power operator(s) getting splitted before line length (#3942) 2023-10-16 07:08:21 -07:00
prefer_rhs_split_reformatted.py Add test for #1187 (#4559) 2025-01-23 21:20:47 -08:00
prefer_rhs_split.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
preview_cantfit_string.py Add --unstable flag (#4096) 2024-01-25 17:00:47 -08:00
preview_comments7.py Two blank lines after an import should be reduced to one (#4489) 2024-12-03 20:39:35 -08:00
preview_fstring.py Prevent f-string merge quote changes with nested quotes (#4498) 2024-12-03 20:44:26 -08:00
preview_hug_parens_with_braces_and_square_brackets_no_ll1.py Move hug_parens_with_braces_and_square_brackets into the unstable style (#4198) 2024-02-01 21:58:51 -08:00
preview_hug_parens_with_braces_and_square_brackets.py Move hug_parens_with_braces_and_square_brackets into the unstable style (#4198) 2024-02-01 21:58:51 -08:00
preview_import_line_collapse.py Two blank lines after an import should be reduced to one (#4489) 2024-12-03 20:39:35 -08:00
preview_long_dict_values.py Move wrap_long_dict_values_in_parens to the preview style (#4561) 2025-01-27 17:46:13 -08:00
preview_long_strings__east_asian_width.py Add --unstable flag (#4096) 2024-01-25 17:00:47 -08:00
preview_long_strings__edge_case.py Add --unstable flag (#4096) 2024-01-25 17:00:47 -08:00
preview_long_strings__regression.py Prevent f-string merge quote changes with nested quotes (#4498) 2024-12-03 20:44:26 -08:00
preview_long_strings.py fix: Don't remove parenthesis around long dictionary values (#4377) 2025-01-16 22:09:22 -08:00
preview_multiline_strings.py fix: Stop moving multiline strings to a new line unless inside brackets (#4289) 2024-03-22 20:11:01 -06:00
preview_remove_multiline_lone_list_item_parens.py fix: Remove parenthesis around sole list items (#4312) 2024-11-27 19:59:29 -08:00
preview_return_annotation_brackets_string.py Add --unstable flag (#4096) 2024-01-25 17:00:47 -08:00
py310_pep572.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
python37.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
python38.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
python39.py Clean up Python 3.8 remnants (#4473) 2024-10-08 19:11:22 -07:00
raw_docstring_no_string_normalization.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
raw_docstring.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
remove_await_parens.py Fix crash on await (a ** b) (#3994) 2023-11-02 20:42:11 -07:00
remove_except_parens.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
remove_for_brackets.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
remove_lone_list_item_parens.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
remove_newline_after_code_block_open.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
remove_parens.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
remove_redundant_parens_in_case_guard.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
remove_with_brackets.py Fix crash on formatting certain with statements (#4538) 2024-12-24 12:25:08 -08:00
return_annotation_brackets.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
single_line_format_skip_with_multiple_comments.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
skip_magic_trailing_comma_generic_wrap.py Improve function declaration wrapping when it contains generic type definitions (#4553) 2025-01-26 00:43:22 -08:00
skip_magic_trailing_comma.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
slices.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
split_delimiter_comments.py fix: Don't move comments while splitting delimiters (#4248) 2024-03-01 07:02:56 -08:00
starred_for_target.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
string_prefixes.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
stub.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
torture.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
trailing_comma_optional_parens1.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
trailing_comma_optional_parens2.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
trailing_comma_optional_parens3.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
trailing_comma.py Create the 2024 stable style (#4106) 2024-01-24 17:06:14 -08:00
trailing_commas_in_leading_parts.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
tricky_unicode_symbols.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
tupleassign.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
type_aliases.py Fix parser bug where "type" was misinterpreted as a keyword inside a match (#3950) 2023-10-17 00:59:15 -07:00
type_comment_syntax_error.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00
type_param_defaults.py Fix parser for TypeVar bounds (#4602) 2025-03-03 00:20:23 -08:00
type_params.py Fix parser for TypeVar bounds (#4602) 2025-03-03 00:20:23 -08:00
typed_params_trailing_comma.py Prepare the 2025 stable style (#4558) 2025-01-24 18:00:35 -08:00
walrus_in_dict.py Move wrap_long_dict_values_in_parens to the preview style (#4561) 2025-01-27 17:46:13 -08:00
whitespace.py Use inline flags for test cases (#3931) 2023-10-09 18:43:47 -07:00