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.can_be_split
17 .. autofunction:: black.can_omit_invisible_parens
19 .. autofunction:: black.is_empty_tuple
21 .. autofunction:: black.is_import
23 .. autofunction:: black.is_line_short_enough
25 .. autofunction:: black.is_multiline_string
27 .. autofunction:: black.is_one_tuple
29 .. autofunction:: black.is_python36
31 .. autofunction:: black.is_split_after_delimiter
33 .. autofunction:: black.is_split_before_delimiter
35 .. autofunction:: black.is_stub_body
37 .. autofunction:: black.is_stub_suite
39 .. autofunction:: black.is_vararg
41 .. autofunction:: black.is_yield
47 .. autofunction:: black.format_file_contents
49 .. autofunction:: black.format_file_in_place
51 .. autofunction:: black.format_stdin_to_stdout
53 .. autofunction:: black.format_str
55 .. autofunction:: black.reformat_one
57 .. autofunction:: black.schedule_formatting
62 .. autofunction:: black.dump_to_file
64 .. autofunction:: black.find_project_root
66 .. autofunction:: black.gen_python_files_in_dir
68 .. autofunction:: black.read_pyproject_toml
73 .. autofunction:: black.decode_bytes
75 .. autofunction:: black.lib2to3_parse
77 .. autofunction:: black.lib2to3_unparse
82 .. autofunction:: black.bracket_split_build_line
84 .. autofunction:: black.bracket_split_succeeded_or_raise
86 .. autofunction:: black.delimiter_split
88 .. autofunction:: black.left_hand_split
90 .. autofunction:: black.right_hand_split
92 .. autofunction:: black.standalone_comment_split
94 .. autofunction:: black.split_line
99 .. autofunction:: black.filter_cached
101 .. autofunction:: black.get_cache_file
103 .. autofunction:: black.get_cache_info
105 .. autofunction:: black.read_cache
107 .. autofunction:: black.write_cache
112 .. py:function:: black.DebugVisitor.show(code: str) -> None
114 Pretty-print the lib2to3 AST of a given string of `code`.
116 .. autofunction:: black.cancel
118 .. autofunction:: black.child_towards
120 .. autofunction:: black.container_of
122 .. autofunction:: black.convert_one_fmt_off_pair
124 .. autofunction:: black.diff
126 .. autofunction:: black.dont_increase_indentation
128 .. autofunction:: black.format_float_or_int_string
130 .. autofunction:: black.format_int_string
132 .. autofunction:: black.ensure_visible
134 .. autofunction:: black.enumerate_reversed
136 .. autofunction:: black.enumerate_with_length
138 .. autofunction:: black.generate_comments
140 .. autofunction:: black.generate_ignored_nodes
142 .. autofunction:: black.generate_trailers_to_omit
144 .. autofunction:: black.get_future_imports
146 .. autofunction:: black.list_comments
148 .. autofunction:: black.make_comment
150 .. autofunction:: black.maybe_make_parens_invisible_in_atom
152 .. autofunction:: black.max_delimiter_priority_in_atom
154 .. autofunction:: black.normalize_fmt_off
156 .. autofunction:: black.normalize_numeric_literal
158 .. autofunction:: black.normalize_prefix
160 .. autofunction:: black.normalize_string_prefix
162 .. autofunction:: black.normalize_string_quotes
164 .. autofunction:: black.normalize_invisible_parens
166 .. autofunction:: black.patch_click
168 .. autofunction:: black.preceding_leaf
170 .. autofunction:: black.re_compile_maybe_verbose
172 .. autofunction:: black.should_explode
174 .. autofunction:: black.shutdown
176 .. autofunction:: black.sub_twice
178 .. autofunction:: black.whitespace