black/tests
Yilei "Dolee" Yang 6ea4eddf93
Fix the handling of # fmt: skip when it's at a colon line (#3148)
When the Leaf node with `# fmt: skip` is a NEWLINE inside a `suite`
Node, the nodes to ignore should be from the siblings of the parent
`suite` Node.

There is a also a special case for the ASYNC token, where it expands
to the grandparent Node where the ASYNC token is.

This fixes GH-2646, GH-3126, GH-2680, GH-2421, GH-2339, and GH-2138.
2022-07-19 17:26:11 -04:00
..
data Fix the handling of # fmt: skip when it's at a colon line (#3148) 2022-07-19 17:26:11 -04:00
__init__.py Remove deprecated use of 'setup.py test' (#1275) 2020-05-08 06:23:50 -07:00
conftest.py Use optional tests for "no_python2" to simplify local testing (#2203) 2021-05-07 15:03:13 +02:00
empty.toml Add --target-version option to allow users to choose targeted Python versions (#618) 2019-02-06 18:43:50 -08:00
optional.py Support pytest 7 by fixing broken imports (GH-2705) 2021-12-24 22:28:43 -05:00
test_black.py Remove newline after code block open (#3035) 2022-06-11 09:55:01 +03:00
test_blackd.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
test_format.py Improve warning filtering in tests (#3175) 2022-07-18 19:17:13 -07:00
test_ipynb.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
test_no_ipynb.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00
test_trans.py Fix determination of f-string expression spans (#2654) 2021-12-01 09:52:24 -08:00
test.toml Add support for custom python cell magics (#2744) 2022-01-20 16:45:28 -08:00
util.py Remove hard coded test cases (#3062) 2022-05-18 12:11:37 -07:00