Loading README.md +3 −0 Changes for README.md: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ black {source_file_or_directory} black [OPTIONS] [SRC]... Options: -c, --code TEXT Format the code passed in as a string. -l, --line-length INTEGER How many characters per line to allow. [default: 88] -t, --target-version [py27|py33|py34|py35|py36|py37|py38] Loading Loading @@ -965,6 +966,8 @@ More details can be found in [CONTRIBUTING](CONTRIBUTING.md). * fix feature detection for trailing commas in function definitions and call sites (#763) * add `black -c` as a way to format code passed from the command line (#761) * fix bug that led *Black* format some code with a line length target of 1 (#762) Loading black.py +5 −0 Changes for black.py: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -231,6 +231,7 @@ def read_pyproject_toml( @click.command(context_settings=dict(help_option_names=["-h", "--help"])) @click.option("-c", "--code", type=str, help="Format the code passed in as a string.") @click.option( "-l", "--line-length", Loading Loading @@ -357,6 +358,7 @@ def read_pyproject_toml( @click.pass_context def main( ctx: click.Context, code: Optional[str], line_length: int, target_version: List[TargetVersion], check: bool, Loading Loading @@ -397,6 +399,9 @@ def main( ) if config and verbose: out(f"Using configuration from {config}.", bold=False, fg="blue") if code is not None: print(format_str(code, mode=mode)) ctx.exit(0) try: include_regex = re_compile_maybe_verbose(include) except re.error: Loading Loading
README.md +3 −0 Changes for README.md: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ black {source_file_or_directory} black [OPTIONS] [SRC]... Options: -c, --code TEXT Format the code passed in as a string. -l, --line-length INTEGER How many characters per line to allow. [default: 88] -t, --target-version [py27|py33|py34|py35|py36|py37|py38] Loading Loading @@ -965,6 +966,8 @@ More details can be found in [CONTRIBUTING](CONTRIBUTING.md). * fix feature detection for trailing commas in function definitions and call sites (#763) * add `black -c` as a way to format code passed from the command line (#761) * fix bug that led *Black* format some code with a line length target of 1 (#762) Loading
black.py +5 −0 Changes for black.py: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -231,6 +231,7 @@ def read_pyproject_toml( @click.command(context_settings=dict(help_option_names=["-h", "--help"])) @click.option("-c", "--code", type=str, help="Format the code passed in as a string.") @click.option( "-l", "--line-length", Loading Loading @@ -357,6 +358,7 @@ def read_pyproject_toml( @click.pass_context def main( ctx: click.Context, code: Optional[str], line_length: int, target_version: List[TargetVersion], check: bool, Loading Loading @@ -397,6 +399,9 @@ def main( ) if config and verbose: out(f"Using configuration from {config}.", bold=False, fg="blue") if code is not None: print(format_str(code, mode=mode)) ctx.exit(0) try: include_regex = re_compile_maybe_verbose(include) except re.error: Loading