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
Function
test
(self, othr)
tests/data/simple_cases/torture.py:20
Method
test
(self)
tests/data/simple_cases/composition.py:2
Method
test
(self)
tests/data/simple_cases/composition_no_trailing_comma.py:2
Method
test_assertFormatEqual
(self)
tests/test_black.py:1089
Method
test_assert_equivalent_different_asts
(self)
tests/test_black.py:1497
Method
test_async_as_identifier
(self)
tests/test_black.py:428
Function
test_async_for
()
tests/data/simple_cases/fmtskip8.py:43
Function
test_async_with
()
tests/data/simple_cases/fmtskip8.py:60
Function
test_automagic
()
tests/test_ipynb.py:224
Method
test_blackd_diff
(self)
tests/test_blackd.py:115
Method
test_blackd_invalid_line_length
(self)
tests/test_blackd.py:172
Method
test_blackd_invalid_python_variant
(self)
tests/test_blackd.py:83
Method
test_blackd_line_length
(self)
tests/test_blackd.py:165
Method
test_blackd_main
(self)
tests/test_blackd.py:35
Method
test_blackd_preview
(self)
tests/test_blackd.py:195
Method
test_blackd_pyi
(self)
tests/test_blackd.py:106
Method
test_blackd_python_variant
(self)
tests/test_blackd.py:133
Method
test_blackd_request_needs_formatting
(self)
tests/test_blackd.py:46
Method
test_blackd_request_no_change
(self)
tests/test_blackd.py:53
Method
test_blackd_request_syntax_error
(self)
tests/test_blackd.py:59
Method
test_blackd_response_black_version_header
(self)
tests/test_blackd.py:202
Method
test_blackd_skip_first_source_line
(self)
tests/test_blackd.py:181
Method
test_blackd_supported_version
(self)
tests/test_blackd.py:76
Method
test_blackd_unsupported_version
(self)
tests/test_blackd.py:69
Method
test_bpo_2142_workaround
(self)
tests/test_black.py:1763
Method
test_bpo_33660_workaround
(self)
tests/test_black.py:1727
Method
test_broken_symlink
(self)
tests/test_black.py:1139
Method
test_cache_broken_file
(self)
tests/test_black.py:1970
Function
test_cache_isnt_written_if_no_jupyter_deps_dir
( monkeypatch: MonkeyPatch, tmp_path: pathlib.Path )
tests/test_ipynb.py:461
Function
test_cache_isnt_written_if_no_jupyter_deps_single
( monkeypatch: MonkeyPatch, tmp_path: pathlib.Path )
tests/test_ipynb.py:435
Method
test_cache_multiple_files
(self)
tests/test_black.py:1992
Method
test_cache_single_file_already_cached
(self)
tests/test_black.py:1982
Function
test_calculate_fades
()
tests/data/simple_cases/fmtonoff2.py:33
Function
test_cell_magic
(mode: Mode)
tests/test_ipynb.py:85
Function
test_cell_magic_nested
()
tests/test_ipynb.py:211
Function
test_cell_magic_noop
()
tests/test_ipynb.py:92
Function
test_cell_magic_with_custom_python_magic
( mode: Mode, expected_output: str, expectation: ContextManager[object] )
tests/test_ipynb.py:199
Function
test_cell_magic_with_invalid_body
()
tests/test_ipynb.py:243
Function
test_cell_magic_with_magic
()
tests/test_ipynb.py:169
Function
test_cell_magic_with_magic_noop
()
tests/test_ipynb.py:218
Method
test_check_diff_use_together
(self)
tests/test_black.py:1120
Method
test_code_option
Test the code option with no changes.
tests/test_black.py:1794
Method
test_code_option_changed
Test the code option when changes are required.
tests/test_black.py:1802
Method
test_code_option_check
Test the code option when check is passed.
tests/test_black.py:1812
Method
test_code_option_check_changed
Test the code option when changes are required, and check is passed.
tests/test_black.py:1818
Method
test_code_option_color_diff
Test the code option when color and diff are passed.
tests/test_black.py:1839
Method
test_code_option_config
Test that the code option finds the pyproject.toml in the current directory.
tests/test_black.py:1882
Method
test_code_option_diff
Test the code option when diff is passed.
tests/test_black.py:1824
Method
test_code_option_fast
Test that the code option ignores errors when the sanity checks fail.
tests/test_black.py:1869
Method
test_code_option_parent_config
Test that the code option finds the pyproject.toml in the parent directory.
tests/test_black.py:1903
Method
test_code_option_safe
Test that the code option throws an error when the sanity checks fail.
tests/test_black.py:1857
Method
test_cors_headers_present
(self)
tests/test_blackd.py:222
Method
test_cors_preflight
(self)
tests/test_blackd.py:207
Method
test_debug_visitor
(self)
tests/test_black.py:1026
Method
test_detect_debug_f_strings
(self)
tests/test_black.py:342
Method
test_detect_pos_only_arguments
(self)
tests/test_black.py:334
Function
test_docstring_line_length_6
Like test_docstring but with line length set to 6.
tests/test_format.py:157
Function
test_docstring_no_string_normalization
Like test_docstring but with string normalization off.
tests/test_format.py:150
Function
test_empty
()
tests/test_format.py:74
Function
test_empty_cell
()
tests/test_ipynb.py:249
Method
test_empty_ff
(self)
tests/test_black.py:146
Method
test_empty_include
(self)
tests/test_black.py:2335
Function
test_empty_string
()
tests/test_ipynb.py:397
Method
test_endmarker
(self)
tests/test_black.py:1081
Function
test_entire_notebook_empty_metadata
()
tests/test_ipynb.py:255
Function
test_entire_notebook_no_trailing_newline
()
tests/test_ipynb.py:337
Function
test_entire_notebook_trailing_newline
()
tests/test_ipynb.py:290
Function
test_entire_notebook_without_changes
()
tests/test_ipynb.py:384
Method
test_equivalency_ast_parse_failure_includes_error
(self)
tests/test_black.py:1931
Method
test_exclude_for_issue_1572
(self)
tests/test_black.py:2210
Method
test_experimental_string_processing_warns
(self)
tests/test_black.py:185
Method
test_expression_diff
(self)
tests/test_black.py:288
Method
test_expression_diff_with_color
(self)
tests/test_black.py:314
Method
test_expression_ff
(self)
tests/test_black.py:274
Method
test_extend_exclude
(self)
tests/test_black.py:2354
Function
test_fader
(test)
tests/data/simple_cases/fmtonoff2.py:18
Method
test_failed_formatting_does_not_get_cached
(self)
tests/test_black.py:2103
Method
test_fails_invalid_post_data
( self, pyramid_config, db_request, post_data, message )
tests/data/simple_cases/comments4.py:52
Method
test_fails_invalid_post_data
( self, pyramid_config, db_request, post_data, message )
tests/data/preview/comments7.py:127
Method
test_false_positive_symlink_output_issue_3384
(self)
tests/test_black.py:479
Function
test_fast_cases
(filename: str)
tests/test_format.py:138
Function
test_fexpr_spans
()
tests/test_trans.py:6
Method
test_filter_cached
(self)
tests/test_black.py:2076
Method
test_find_project_root
(self)
tests/test_black.py:1644
Method
test_find_pyproject_toml
(self, find_user_pyproject_toml: MagicMock)
tests/test_black.py:1682
Method
test_find_user_pyproject_toml_linux
(self)
tests/test_black.py:1698
Method
test_find_user_pyproject_toml_windows
(self)
tests/test_black.py:1718
Method
test_for_handled_unexpected_eof_error
Test that an unexpected EOF SyntaxError is nicely presented.
tests/test_black.py:1922
Method
test_format_file_contents
(self)
tests/test_black.py:1050
Function
test_func
()
tests/data/simple_cases/fmtonoff5.py:28
Method
test_func
(self)
tests/data/simple_cases/class_blank_parentheses.py:6
Method
test_get_cache_dir
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
tests/test_black.py:1943
Method
test_get_features_used
(self)
tests/test_black.py:910
Method
test_get_features_used_decorator
(self)
tests/test_black.py:877
Method
test_get_features_used_for_future_flags
(self)
tests/test_black.py:977
Method
test_get_future_imports
(self)
tests/test_black.py:995
Method
test_get_sources_with_stdin
(self)
tests/test_black.py:2400
Method
test_get_sources_with_stdin_filename
(self)
tests/test_black.py:2406
Method
test_get_sources_with_stdin_filename_and_exclude
(self)
tests/test_black.py:2418
Method
test_get_sources_with_stdin_filename_and_extend_exclude
(self)
tests/test_black.py:2434
← previous
next →
801–900 of 1,067, ranked by callers