![]() 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. |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
conftest.py | ||
empty.toml | ||
optional.py | ||
test_black.py | ||
test_blackd.py | ||
test_format.py | ||
test_ipynb.py | ||
test_no_ipynb.py | ||
test_trans.py | ||
test.toml | ||
util.py |