All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
4 *Contents are subject to change.*
6 .. currentmodule:: black
11 .. autofunction:: black.assert_equivalent
13 .. autofunction:: black.assert_stable
15 .. autofunction:: black.lines.can_be_split
17 .. autofunction:: black.lines.can_omit_invisible_parens
19 .. autofunction:: black.nodes.is_empty_tuple
21 .. autofunction:: black.nodes.is_import
23 .. autofunction:: black.lines.is_line_short_enough
25 .. autofunction:: black.nodes.is_multiline_string
27 .. autofunction:: black.nodes.is_one_tuple
29 .. autofunction:: black.brackets.is_split_after_delimiter
31 .. autofunction:: black.brackets.is_split_before_delimiter
33 .. autofunction:: black.nodes.is_stub_body
35 .. autofunction:: black.nodes.is_stub_suite
37 .. autofunction:: black.nodes.is_vararg
39 .. autofunction:: black.nodes.is_yield
45 .. autofunction:: black.format_file_contents
47 .. autofunction:: black.format_file_in_place
49 .. autofunction:: black.format_stdin_to_stdout
51 .. autofunction:: black.format_str
53 .. autofunction:: black.reformat_one
55 .. autofunction:: black.schedule_formatting
60 .. autofunction:: black.dump_to_file
62 .. autofunction:: black.find_project_root
64 .. autofunction:: black.gen_python_files
66 .. autofunction:: black.read_pyproject_toml
71 .. autofunction:: black.decode_bytes
73 .. autofunction:: black.parsing.lib2to3_parse
75 .. autofunction:: black.parsing.lib2to3_unparse
80 .. autofunction:: black.linegen.bracket_split_build_line
82 .. autofunction:: black.linegen.bracket_split_succeeded_or_raise
84 .. autofunction:: black.linegen.delimiter_split
86 .. autofunction:: black.linegen.left_hand_split
88 .. autofunction:: black.linegen.right_hand_split
90 .. autofunction:: black.linegen.standalone_comment_split
92 .. autofunction:: black.linegen.transform_line
97 .. autofunction:: black.cache.filter_cached
99 .. autofunction:: black.cache.get_cache_file
101 .. autofunction:: black.cache.get_cache_info
103 .. autofunction:: black.cache.read_cache
105 .. autofunction:: black.cache.write_cache
110 .. py:function:: black.debug.DebugVisitor.show(code: str) -> None
112 Pretty-print the lib2to3 AST of a given string of `code`.
114 .. autofunction:: black.concurrency.cancel
116 .. autofunction:: black.nodes.child_towards
118 .. autofunction:: black.nodes.container_of
120 .. autofunction:: black.comments.convert_one_fmt_off_pair
122 .. autofunction:: black.diff
124 .. autofunction:: black.linegen.dont_increase_indentation
126 .. autofunction:: black.numerics.format_float_or_int_string
128 .. autofunction:: black.nodes.ensure_visible
130 .. autofunction:: black.lines.enumerate_reversed
132 .. autofunction:: black.comments.generate_comments
134 .. autofunction:: black.comments.generate_ignored_nodes
136 .. autofunction:: black.comments.is_fmt_on
138 .. autofunction:: black.comments.contains_fmt_on_at_column
140 .. autofunction:: black.nodes.first_leaf_column
142 .. autofunction:: black.linegen.generate_trailers_to_omit
144 .. autofunction:: black.get_future_imports
146 .. autofunction:: black.comments.list_comments
148 .. autofunction:: black.comments.make_comment
150 .. autofunction:: black.linegen.maybe_make_parens_invisible_in_atom
152 .. autofunction:: black.brackets.max_delimiter_priority_in_atom
154 .. autofunction:: black.normalize_fmt_off
156 .. autofunction:: black.numerics.normalize_numeric_literal
158 .. autofunction:: black.linegen.normalize_prefix
160 .. autofunction:: black.strings.normalize_string_prefix
162 .. autofunction:: black.strings.normalize_string_quotes
164 .. autofunction:: black.linegen.normalize_invisible_parens
166 .. autofunction:: black.patch_click
168 .. autofunction:: black.nodes.preceding_leaf
170 .. autofunction:: black.re_compile_maybe_verbose
172 .. autofunction:: black.linegen.should_split_line
174 .. autofunction:: black.shutdown
176 .. autofunction:: black.strings.sub_twice
178 .. autofunction:: black.nodes.whitespace