MCPcopy Create free account
hub / github.com/psf/black / check_file

Function check_file

tests/test_format.py:25–29  ·  view source on GitHub ↗
(
    subdir: str, filename: str, mode: black.Mode, *, data: bool = True
)

Source from the content-addressed store, hash-verified

23
24
25def check_file(
26 subdir: str, filename: str, mode: black.Mode, *, data: bool = True
27) -> None:
28 source, expected = read_data(subdir, filename, data=data)
29 assert_format(source, expected, mode, fast=False)
30
31
32@pytest.mark.filterwarnings("ignore:invalid escape sequence.*:DeprecationWarning")

Callers 2

test_simple_formatFunction · 0.85
test_preview_formatFunction · 0.85

Calls 2

read_dataFunction · 0.90
assert_formatFunction · 0.90

Tested by

no test coverage detected