Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/black
/ functions
Functions
1,067 in github.com/psf/black
⨍
Functions
1,067
◇
Types & classes
148
↳
Endpoints
29
Method
test_get_sources_with_stdin_filename_and_force_exclude
(self)
tests/test_black.py:2450
Method
test_gitignore_exclude
(self)
tests/test_black.py:2219
Method
test_gitignore_that_ignores_subfolders
(self)
tests/test_black.py:2309
Method
test_gitignore_used_as_default
(self)
tests/test_black.py:2187
Method
test_gitignore_used_on_multiple_sources
(self)
tests/test_black.py:2198
Method
test_include_exclude
(self)
tests/test_black.py:2173
Method
test_infer_target_version
(self)
tests/test_black.py:1574
Function
test_input_already_contains_transformed_magic
()
tests/test_ipynb.py:157
Method
test_invalid_cli_regex
(self)
tests/test_black.py:1428
Method
test_invalid_config_return_code
(self)
tests/test_black.py:1540
Method
test_invalid_gitignore
(self)
tests/test_black.py:2285
Method
test_invalid_nested_gitignore
(self)
tests/test_black.py:2297
Function
test_ipynb_and_pyi_flags
()
tests/test_ipynb.py:501
Function
test_ipynb_diff_with_change
()
tests/test_ipynb.py:409
Function
test_ipynb_diff_with_no_change
()
tests/test_ipynb.py:422
Function
test_ipynb_diff_with_no_change_dir
(tmp_path: pathlib.Path)
tests/test_no_ipynb.py:25
Function
test_ipynb_diff_with_no_change_single
()
tests/test_no_ipynb.py:14
Function
test_ipynb_flag
(tmp_path: pathlib.Path)
tests/test_ipynb.py:483
Method
test_lib2to3_parse
(self)
tests/test_black.py:861
Function
test_long_strings_flag_disabled
Tests for turning off the string processing logic.
tests/test_format.py:176
Function
test_magic
(src: str, expected: str, mode: Mode)
tests/test_ipynb.py:128
Function
test_magic_noop
()
tests/test_ipynb.py:163
Method
test_multi_file_force_py36
(self)
tests/test_black.py:1220
Method
test_multi_file_force_pyi
(self)
tests/test_black.py:1168
Function
test_multiline_magic
()
tests/test_ipynb.py:230
Function
test_multiline_no_magic
()
tests/test_ipynb.py:236
Function
test_nested_class_stub
()
tests/test_format.py:189
Method
test_nested_gitignore
(self)
tests/test_black.py:2249
Method
test_nested_gitignore_directly_in_source_directory
(self)
tests/test_black.py:2278
Method
test_newline_comment_interaction
(self)
tests/test_black.py:1758
Method
test_no_cache_when_stdin
(self)
tests/test_black.py:2051
Method
test_no_cache_when_writeback_diff
(self, color: bool)
tests/test_black.py:2014
Method
test_no_src_fails
(self)
tests/test_black.py:1131
Function
test_non_python_magics
(src: str)
tests/test_ipynb.py:141
Function
test_non_python_notebook
()
tests/test_ipynb.py:390
Function
test_noop
()
tests/test_ipynb.py:36
Method
test_normalize_line_endings
(self)
tests/test_black.py:1486
Method
test_normalize_path_ignore_windows_junctions_outside_of_root
(self)
tests/test_black.py:1739
Method
test_normalizes_line_endings
(self)
tests/test_blackd.py:238
Method
test_one_empty_line
(self)
tests/test_black.py:158
Method
test_one_empty_line_ff
(self)
tests/test_black.py:164
Method
test_output_locking_when_writeback_diff
(self, color: bool)
tests/test_black.py:2034
Method
test_parse_pyproject_toml
(self)
tests/test_black.py:1550
Method
test_parse_pyproject_toml_project_metadata
(self)
tests/test_black.py:1563
Function
test_patma_139
(self)
tests/data/py_310/pattern_matching_generic.py:46
Function
test_patma_155
(self)
tests/data/py_310/pattern_matching_generic.py:72
Function
test_patma_invalid
()
tests/test_format.py:121
Method
test_pep_572_version_detection
(self)
tests/test_black.py:266
Method
test_pipe_force_py36
(self)
tests/test_black.py:1244
Method
test_pipe_force_pyi
(self)
tests/test_black.py:1192
Method
test_piping
(self)
tests/test_black.py:190
Method
test_piping_diff
(self)
tests/test_black.py:208
Method
test_piping_diff_with_color
(self)
tests/test_black.py:230
Function
test_power_op_newline
()
tests/test_format.py:195
Method
test_preserves_line_endings
(self)
tests/test_black.py:1461
Method
test_preserves_line_endings
(self)
tests/test_blackd.py:228
Method
test_preserves_line_endings_via_stdin
(self)
tests/test_black.py:1473
Function
test_preview_context_managers_auto_detect
(filename: str)
tests/test_format.py:61
Function
test_preview_context_managers_targeting_py38
()
tests/test_format.py:46
Function
test_preview_context_managers_targeting_py39
()
tests/test_format.py:52
Function
test_preview_docstring_no_string_normalization
Like test_docstring but with string normalization off *and* the preview style enabled.
tests/test_format.py:164
Function
test_preview_format
(filename: str)
tests/test_format.py:42
Method
test_python37
(self)
tests/test_black.py:443
Function
test_python_2_hint
()
tests/test_format.py:143
Function
test_python_310
(filename: str)
tests/test_format.py:108
Function
test_python_310_without_target_version
(filename: str)
tests/test_format.py:115
Function
test_python_311
(filename: str)
tests/test_format.py:131
Function
test_python_36
(filename: str)
tests/test_format.py:80
Function
test_python_37
(filename: str)
tests/test_format.py:87
Function
test_python_38
(filename: str)
tests/test_format.py:94
Function
test_python_39
(filename: str)
tests/test_format.py:101
Method
test_read_cache_line_lengths
(self)
tests/test_black.py:2125
Method
test_read_cache_no_cachefile
(self)
tests/test_black.py:2061
Method
test_read_pyproject_toml
(self)
tests/test_black.py:1629
Method
test_reformat_one_with_stdin
(self)
tests/test_black.py:1256
Method
test_reformat_one_with_stdin_and_existing_path
(self)
tests/test_black.py:1347
Method
test_reformat_one_with_stdin_empty
(self)
tests/test_black.py:1371
Method
test_reformat_one_with_stdin_filename
(self)
tests/test_black.py:1274
Method
test_reformat_one_with_stdin_filename_ipynb
(self)
tests/test_black.py:1322
Method
test_reformat_one_with_stdin_filename_pyi
(self)
tests/test_black.py:1297
Method
test_report_normal
(self)
tests/test_black.py:750
Method
test_report_quiet
(self)
tests/test_black.py:642
Method
test_report_verbose
(self)
tests/test_black.py:526
Method
test_required_version_does_not_match_on_minor_version
(self)
tests/test_black.py:1446
Method
test_required_version_does_not_match_version
(self)
tests/test_black.py:1453
Method
test_required_version_matches_partial_version
(self)
tests/test_black.py:1439
Method
test_required_version_matches_version
(self)
tests/test_black.py:1432
Method
test_root_logger_not_used_directly
(self)
tests/test_black.py:1525
Function
test_set_input
()
tests/test_ipynb.py:150
Method
test_shhh_click
(self)
tests/test_black.py:1501
Function
test_simple_format
(filename: str)
tests/test_format.py:34
Method
test_single_file_force_py36
(self)
tests/test_black.py:1201
Method
test_single_file_force_pyi
(self)
tests/test_black.py:1148
Method
test_skip_magic_trailing_comma
(self)
tests/test_black.py:397
Method
test_skip_source_first_line
(self)
tests/test_black.py:373
Method
test_skip_source_first_line_when_mixing_newlines
(self)
tests/test_black.py:387
Method
test_src_and_code_fails
(self)
tests/test_black.py:1135
Method
test_string_quotes
(self)
tests/test_black.py:363
Function
test_stub
()
tests/test_format.py:183
Method
test_symlink_out_of_root_directory
(self)
tests/test_black.py:2366
← previous
next →
901–1,000 of 1,067, ranked by callers