mypythontools_cicd.misc package¶
Miscellaneous functions that are too small to have own subpackage like for example formatting with black.
- mypythontools_cicd.misc.reformat_with_black(root_path: None | PathLike = None, extra_args: Sequence[str] = ('--quiet',), verbose: bool = False) None [source]¶
Reformat code with black.
- Parameters
root_path (None | PathLike, optional) – Root path of project. If None, will be inferred. Defaults to None.
extra_args (Sequence[str], optional) – Some extra args for black. Defaults to (”–quiet,”).
verbose (bool, optional) – If True, result of terminal command will be printed to console. Defaults to False.
Example
>>> reformat_with_black()