assert_black_formatted¶
-
lsst.ts.salobj.
assert_black_formatted
(dir)¶ Assert that all Python files in a directory (at any depth) are formatted with black.
Here is how to call this from a unit test:
assert_black_formatted(pathlib.Path(__file__).parents[1])Raises: - AssertionError
If any files are not formatted with
black
.