MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions820 in github.com/PyCQA/isort

Functiontest_force_grid_wrap
Ensures removing imports works as expected.
tests/unit/test_isort.py:2417
Functiontest_force_grid_wrap_long
Ensure that force grid wrap still happens with long line length
tests/unit/test_isort.py:2438
Functiontest_force_single_line_imports
Test to ensure forcing imports to each have their own line works as expected.
tests/unit/test_isort.py:1155
Functiontest_force_single_line_imports_and_sort_within_sections
()
tests/unit/test_isort.py:1214
Functiontest_force_single_line_long_imports
()
tests/unit/test_isort.py:1203
Functiontest_force_single_line_should_not_influence_order_of_star_import
isort should never move comments to different import statement. Originally reported as an issue with moving comments across import statements,
tests/unit/test_regressions.py:653
Functiontest_force_single_line_shouldnt_remove_preceding_comment_lines_issue_1296
Tests to ensure force_single_line setting doesn't result in lost comments. See: https://github.com/pycqa/isort/issues/1296
tests/unit/test_regressions.py:195
Functiontest_force_sort_within_sections_applies_to_lazy
force_sort_within_sections toggles lazy import ordering behavior.
tests/unit/test_lazy_imports.py:129
Functiontest_force_sort_within_sections_with_relative_imports
Test sorting of relative imports with force_sort_within_sections=True
tests/unit/test_isort.py:3265
Functiontest_force_sort_within_sections_with_reverse_relative_imports
Test reverse sorting of relative imports with force_sort_within_sections=True
tests/unit/test_isort.py:3281
Functiontest_force_to_top
Ensure forcing a single import to the top of its category works as expected.
tests/unit/test_isort.py:842
Functiontest_forced_separate
Ensure that forcing certain sub modules to show separately works as expected.
tests/unit/test_isort.py:1028
Functiontest_forced_separate_is_deterministic_issue_774
(tmpdir)
tests/unit/test_isort.py:3681
Functiontest_forced_sepatate_globs
Test to ensure that forced_separate glob matches lines
tests/unit/test_isort.py:2841
Functiontest_form_feed_blank_line_not_removed_issue_2562
Ensure isort preserves form feed as a valid blank line.
tests/unit/test_regressions.py:184
Methodtest_from_content
(self, tmpdir)
tests/unit/test_io.py:23
Functiontest_from_ending
Imports ending in "from" shouldn't be clobbered.
tests/unit/test_isort.py:2377
Functiontest_from_first
Tests the setting from_first works correctly
tests/unit/test_isort.py:2384
Functiontest_from_first_option_respected_for_lazy
When from_first=True, lazy from imports precede lazy straight but appear after eager.
tests/unit/test_lazy_imports.py:120
Functiontest_function_with_docstring
Test to ensure isort can correctly sort imports when the first found content is a function with a docstring
tests/unit/test_isort.py:2966
Functiontest_future_below_encoding_issue_545
Test to ensure future is always below comment
tests/unit/test_isort.py:3341
Functiontest_fuzz__infer_line_separator
(contents)
tests/unit/test_parse.py:69
Functiontest_fuzz__strip_syntax
(import_string)
tests/unit/test_parse.py:74
Functiontest_fuzz_add_to_line
(comments, original_string, removed, comment_prefix)
tests/unit/test_output.py:13
Functiontest_fuzz_add_to_line
(comments, original_string, removed, comment_prefix)
tests/unit/test_comments.py:23
Functiontest_fuzz_backslash_grid
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:146
Functiontest_fuzz_grid
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:187
Functiontest_fuzz_hanging_indent
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:228
Functiontest_fuzz_hanging_indent_with_parentheses
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:287
Functiontest_fuzz_import_type
(line, config)
tests/unit/test_parse.py:79
Functiontest_fuzz_noqa
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:328
Functiontest_fuzz_parse
(line)
tests/unit/test_comments.py:33
Functiontest_fuzz_show_unified_diff
(file_input, file_output, file_path, output)
tests/unit/test_format.py:125
Functiontest_fuzz_skip_line
(line, in_quote, needs_import)
tests/unit/test_parse.py:84
Functiontest_fuzz_sort_imports
(file_name, config, check, ask_to_apply, write_to_stdout)
tests/unit/test_main.py:34
Functiontest_fuzz_vertical
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:369
Functiontest_fuzz_vertical_grid
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:410
Functiontest_fuzz_vertical_grid_grouped
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:451
Functiontest_fuzz_vertical_hanging_indent
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:492
Functiontest_fuzz_vertical_hanging_indent_bracket
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:533
Functiontest_fuzz_vertical_prefix_from_module_import
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:574
Functiontest_get_config_data
(tmpdir)
tests/unit/test_settings.py:158
Functiontest_get_config_data_with_toml_and_utf8
(tmpdir)
tests/unit/test_settings.py:195
Functiontest_git_hook
Simple smoke level testing of git hooks
tests/unit/test_hooks.py:12
Functiontest_git_hook_lazy
(tmpdir)
tests/unit/test_hooks.py:95
Functiontest_git_hook_uses_the_configuration_file_specified_in_settings_path
(tmp_path: Path)
tests/unit/test_hooks.py:118
Functiontest_git_hook_with_mocks
Additional tests for the git hook, split off to allow running some when compiled.
tests/unit/test_hooks.py:68
Functiontest_gitignore
(capsys, tmp_path: pathlib.Path)
tests/unit/test_main.py:1059
Functiontest_glob_known
Ensure that most specific placement control match wins
tests/unit/test_isort.py:2305
Functiontest_google_code_snippet_one
()
tests/unit/profiles/test_google.py:25
Functiontest_google_code_snippet_shared_example
Tests snippet examples directly shared with the isort project. See: https://github.com/PyCQA/isort/issues/1486.
tests/unit/profiles/test_google.py:8
Functiontest_google_code_snippet_two
()
tests/unit/profiles/test_google.py:235
Functiontest_habitat_lab
(tmpdir)
tests/integration/test_projects_using_isort.py:51
Functiontest_hanging_indent__with_include_trailing_comma__expect_same_result
(include_trailing_comma)
tests/unit/test_wrap_modes.py:258
Functiontest_happy_path
Test the most basic use case, straight imports no code, simply not organized by category.
tests/unit/test_isort.py:74
Functiontest_hug_code_snippet_one
()
tests/unit/profiles/test_hug.py:8
Functiontest_hug_code_snippet_three
()
tests/unit/profiles/test_hug.py:79
Functiontest_hug_code_snippet_two
()
tests/unit/profiles/test_hug.py:56
Functiontest_hypothesis
(tmpdir)
tests/integration/test_projects_using_isort.py:61
Functiontest_identify_imports_main
(tmpdir, capsys)
tests/unit/test_main.py:1017
Functiontest_ignore_whitespace
(capsys)
tests/unit/test_isort.py:3192
Functiontest_import_by_paren_issue_375
Test to ensure isort can correctly handle sorting imports where the paren is directly by the import body
tests/unit/test_isort.py:2946
Functiontest_import_by_paren_issue_460
Test to ensure isort can doesn't move comments around
tests/unit/test_isort.py:2954
Functiontest_import_case_produces_inconsistent_results_issue_472
Test to ensure sorting imports with same name but different case produces the same result across platforms
tests/unit/test_isort.py:3215
Functiontest_import_heading_issue_905
()
tests/unit/test_isort.py:4339
Functiontest_import_inside_class_issue_432
Test to ensure issue 432 is resolved and isort doesn't insert imports in the middle of classes
tests/unit/test_isort.py:3056
Functiontest_import_line_mangles_issues_439
Test to ensure comment on import with parens doesn't cause issues
tests/unit/test_isort.py:3086
Functiontest_import_line_mangles_issues_491
Test to ensure comment on import with parens doesn't cause issues
tests/unit/test_isort.py:3074
Functiontest_import_line_mangles_issues_505
Test to ensure comment on import with parens doesn't cause issues
tests/unit/test_isort.py:3080
Functiontest_import_sorting_shouldnt_be_endless_with_headers_issue_1454
isort should never enter an endless sorting loop. See: https://github.com/PyCQA/isort/issues/1454
tests/unit/test_regressions.py:1075
Functiontest_import_split_is_word_boundary_aware
Test to ensure that isort splits words in a boundary aware manner
tests/unit/test_isort.py:2483
Functiontest_import_star
Test to ensure isort handles star imports correctly
tests/unit/test_isort.py:1879
Functiontest_import_statement
()
tests/unit/test_wrap.py:8
Functiontest_import_wraps_with_comment_issue_471
Test to ensure issue #471 is resolved
tests/unit/test_isort.py:3199
Functiontest_importable
Simple smoketest to ensure all isort modules are importable
tests/unit/test_importable.py:8
Functiontest_include_trailing_comma
Test for the include_trailing_comma option
tests/unit/test_isort.py:1886
Functiontest_inconsistent_behavior_in_python_2_and_3_issue_479
Test to ensure Python 2 and 3 have the same behavior
tests/unit/test_isort.py:3232
Functiontest_inconsistent_relative_imports_issue_577
()
tests/unit/test_isort.py:3864
Functiontest_incorrect_grouping_when_comments_issue_1396
Test to ensure isort groups import correct independent of the comments present. See: https://github.com/pycqa/isort/issues/1396
tests/unit/test_regressions.py:556
Functiontest_indented
()
tests/unit/test_identify.py:283
Functiontest_indented_import_headings_issue_1604
Test to ensure it is possible to toggle import headings on indented import sections See: https://github.com/PyCQA/isort/issues/1604
tests/unit/test_ticketed_features.py:814
Functiontest_infinite_loop_in_unmatched_parenthesis
()
tests/unit/test_isort.py:5580
Methodtest_init
(self)
tests/unit/test_settings.py:15
Methodtest_init
(self)
tests/unit/test_exceptions.py:10
Methodtest_init_unsupported_settings_fails_gracefully
(self)
tests/unit/test_settings.py:18
Methodtest_invalid_profile
(self)
tests/unit/test_settings.py:40
Methodtest_invalid_pyversion
(self)
tests/unit/test_settings.py:36
Methodtest_invalid_settings_path
(self)
tests/unit/test_settings.py:32
Functiontest_invalid_sort_type
()
tests/unit/test_literal.py:19
Functiontest_invalid_syntax
()
tests/unit/test_literal.py:14
Methodtest_is_skipped
(self)
tests/unit/test_settings.py:44
Methodtest_is_supported_filetype
(self)
tests/unit/test_settings.py:48
Methodtest_is_supported_filetype_configuration
(self, tmpdir)
tests/unit/test_settings.py:76
Methodtest_is_supported_filetype_defaults
(self, tmpdir)
tests/unit/test_settings.py:71
Methodtest_is_supported_filetype_editor_backup
(self, tmpdir)
tests/unit/test_settings.py:66
Methodtest_is_supported_filetype_fifo
(self, tmpdir)
tests/unit/test_settings.py:84
Methodtest_is_supported_filetype_ioerror
(self, tmpdir)
tests/unit/test_settings.py:57
Methodtest_is_supported_filetype_shebang
(self, tmpdir)
tests/unit/test_settings.py:61
Functiontest_isort_adding_second_comma_issue_1621
Ensure isort doesn't add a second comma when very long comment is present See: https://github.com/PyCQA/isort/issues/1621.
tests/unit/test_regressions.py:1553
Functiontest_isort_allows_reversing_sort_order_issue_1645
isort allows reversing the sort order for those who prefer Z or longer imports first. see: https://github.com/PyCQA/isort/issues/1688
tests/unit/test_ticketed_features.py:883
← previousnext →401–500 of 820, ranked by callers