black/tests
Shantanu c47b91f513
Fix misdetection of project root with --stdin-filename (#3216)
There are a number of places this behaviour could be patched, for
instance, it's quite tempting to patch it in `get_sources`. However
I believe we generally have the invariant that project root contains all
files we want to format, in which case it seems prudent to keep that
invariant.

This also improves the accuracy of the "sources to be formatted" log
message with --stdin-filename.

Fixes GH-3207.
2022-08-26 17:07:25 -04:00
..
data Fix a string merging/split issue caused by standalone comments. (#3227) 2022-08-22 20:40:38 -07: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 Reformat codebase with isort 2022-07-27 17:19:28 -04:00
test_black.py Fix misdetection of project root with --stdin-filename (#3216) 2022-08-26 17:07:25 -04:00
test_blackd.py Add passing 3.11 CI by exempting blackd tests (#3234) 2022-08-22 20:39:48 -07:00
test_format.py Strip trailing commas in subscripts with -C (#3209) 2022-08-13 06:41:34 -07:00
test_ipynb.py Reformat codebase with isort 2022-07-27 17:19:28 -04:00
test_no_ipynb.py Reformat codebase with isort 2022-07-27 17:19:28 -04:00
test_trans.py Reformat codebase with isort 2022-07-27 17:19:28 -04: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