Skip to content

Latest commit

 

History

History
180 lines (94 loc) · 3.49 KB

reference_functions.rst

File metadata and controls

180 lines (94 loc) · 3.49 KB

Black functions

Contents are subject to change.

black

Assertions and checks

black.assert_equivalent

black.assert_stable

black.can_be_split

black.can_omit_invisible_parens

black.is_empty_tuple

black.is_import

black.is_line_short_enough

black.is_multiline_string

black.is_one_tuple

black.is_split_after_delimiter

black.is_split_before_delimiter

black.is_stub_body

black.is_stub_suite

black.is_vararg

black.is_yield

Formatting

black.format_file_contents

black.format_file_in_place

black.format_stdin_to_stdout

black.format_str

black.reformat_one

black.schedule_formatting

File operations

black.dump_to_file

black.find_project_root

black.gen_python_files

black.read_pyproject_toml

Parsing

black.decode_bytes

black.lib2to3_parse

black.lib2to3_unparse

Split functions

black.bracket_split_build_line

black.bracket_split_succeeded_or_raise

black.delimiter_split

black.left_hand_split

black.right_hand_split

black.standalone_comment_split

black.split_line

Caching

black.filter_cached

black.get_cache_file

black.get_cache_info

black.read_cache

black.write_cache

Utilities

black.cancel

black.child_towards

black.container_of

black.convert_one_fmt_off_pair

black.diff

black.dont_increase_indentation

black.format_float_or_int_string

black.ensure_visible

black.enumerate_reversed

black.enumerate_with_length

black.generate_comments

black.generate_ignored_nodes

black.is_fmt_on

black.contains_fmt_on_at_column

black.first_leaf_column

black.generate_trailers_to_omit

black.get_future_imports

black.list_comments

black.make_comment

black.maybe_make_parens_invisible_in_atom

black.max_delimiter_priority_in_atom

black.normalize_fmt_off

black.normalize_numeric_literal

black.normalize_prefix

black.normalize_string_prefix

black.normalize_string_quotes

black.normalize_invisible_parens

black.patch_click

black.preceding_leaf

black.re_compile_maybe_verbose

black.should_explode

black.shutdown

black.sub_twice

black.whitespace