black/tests/data
Henri Holopainen 66008fda5d
[563] Fix standalone comments inside complex blocks crashing Black (#4016)
Bracket depth is not an accurate indicator of standalone comment position inside more complex blocks because bracket depth can be virtual (in loops' and lambdas' parameter blocks) or from optional parens. Here we try to stop cumulating lines upon standalone comments in complex blocks, and try to make standalone comment processing more simple. The fundamental idea is, that if we have a standalone comment, it needs to go on its own line, so we always have to split.

This is not perfect, but at least a first step.
2023-11-07 11:29:24 -08:00
..
cases [563] Fix standalone comments inside complex blocks crashing Black (#4016) 2023-11-07 11:29:24 -08:00
gitignore_used_on_multiple_sources Apply .gitignore correctly in every source entry (#3336) 2022-11-04 22:09:59 -07:00
ignore_subfolders_gitignore_tests Compare each .gitignore found with an appropiate relative path (#3338) 2022-11-08 07:50:04 -08:00
include_exclude_tests Do not use gitignore if explicitly passing excludes (#2170) 2021-05-07 14:54:21 +02:00
invalid_gitignore_tests Present a more user-friendly error if .gitignore is invalid (#2414) 2021-08-20 19:54:53 -04:00
invalid_nested_gitignore_tests Present a more user-friendly error if .gitignore is invalid (#2414) 2021-08-20 19:54:53 -04:00
jupyter Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
line_ranges_formatted Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00
miscellaneous Standardise newlines after module-level docstrings (#3932) 2023-10-09 19:34:26 -07:00
nested_gitignore_tests Fix: black only respects the root gitignore. (#2225) 2021-05-16 13:51:27 -04:00
project_metadata Infer target version based on project metadata (#3219) 2023-01-31 18:00:17 -08:00
empty_pyproject.toml Support pyproject.toml 2018-06-06 17:02:10 -07:00
invalid_line_ranges.toml Support formatting specified lines (#4020) 2023-11-06 18:05:25 -08:00