Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyCQA/isort
/ functions
Functions
739 in github.com/PyCQA/isort
⨍
Functions
739
◇
Types & classes
57
↳
Endpoints
8
Function
test_isort_should_keep_all_as_and_non_as_imports_issue_1523
isort should keep as and non-as imports of the same path that happen to exist within the same statement. See: https://github.com/PyCQA/isort/i
tests/unit/test_regressions.py:1277
Function
test_isort_should_keep_multi_noqa_with_star_issue_1744
()
tests/unit/test_regressions.py:1727
Function
test_isort_should_keep_multiple_noqa_comments_force_single_line_mode_issue_1721
()
tests/unit/test_regressions.py:1782
Function
test_isort_should_leave_non_import_from_lines_alone_issue_1488
isort should never mangle non-import from statements. See: https://github.com/PyCQA/isort/issues/1488
tests/unit/test_regressions.py:1034
Function
test_isort_should_never_quietly_remove_imports_in_any_hangin_mode_issue_1741
( multi_line_output: int, )
tests/unit/test_regressions.py:1711
Function
test_isort_should_never_quietly_remove_imports_in_hanging_line_mode_issue_1741
()
tests/unit/test_regressions.py:1655
Function
test_isort_should_only_add_imports_to_valid_location_issue_1769
()
tests/unit/test_regressions.py:1798
Function
test_isort_should_produce_the_same_code_on_subsequent_runs_issue_1799
(tmpdir)
tests/unit/test_regressions.py:1869
Function
test_isort_should_warn_on_empty_custom_config_issue_1433
Feedback should be provided when a user provides a custom settings file that has no discoverable configuration. See: https://github.com/PyCQA/
tests/unit/test_ticketed_features.py:599
Function
test_isort_shouldnt_add_extra_line_float_to_top_issue_1667
()
tests/unit/test_regressions.py:1572
Function
test_isort_shouldnt_add_extra_new_line_when_fass_and_n_issue_1315
Test to ensure isort doesn't add a second extra new line when combining --fss and -n options. See: https://github.com/pycqa/isort/issues/1315
tests/unit/test_regressions.py:321
Function
test_isort_shouldnt_add_extra_new_lines_with_import_heading_issue_1670
()
tests/unit/test_regressions.py:1541
Function
test_isort_shouldnt_duplicate_comments_issue_1631
()
tests/unit/test_regressions.py:1519
Function
test_isort_shouldnt_fail_on_long_from_with_dot_issue_1190
Test to ensure that isort will correctly handle formatting a long from import that contains a dot. See: https://github.com/pycqa/isort/issues/
tests/unit/test_regressions.py:294
Function
test_isort_shouldnt_introduce_extra_lines_with_fass_issue_1322
Tests to ensure isort doesn't introduce extra lines when used with fass option. See: https://github.com/pycqa/isort/issues/1322
tests/unit/test_regressions.py:372
Function
test_isort_shouldnt_introduce_syntax_error_issue_1539
isort should NEVER introduce syntax errors. In 5.5.4 some strings that contained a line starting with from could lead to no empty paren. See:
tests/unit/test_regressions.py:1291
Function
test_isort_shouldnt_mangle_from_multi_line_string_issue_1507
isort was seen mangling lines that happened to contain the word from after a yield happened to be in a file. Clearly this shouldn't happen. Se
tests/unit/test_regressions.py:1237
Function
test_isort_shouldnt_move_noqa_comment_issue_1594
()
tests/unit/test_regressions.py:1589
Function
test_isort_shouldnt_split_skip_issue_1548
Ensure isort doesn't add a spurious new line if isort: skip is combined with float to top. See: https://github.com/PyCQA/isort/issues/1548.
tests/unit/test_regressions.py:1340
Function
test_isort_shouldnt_split_skip_issue_1556
()
tests/unit/test_regressions.py:1426
Function
test_isort_skipped_nested_imports_issue_1339
Ensure `isort:skip are honored in nested imports. See: https://github.com/pycqa/isort/issues/1339.
tests/unit/test_regressions.py:475
Function
test_isort_split
Test the ability to split isort import sections
tests/unit/test_isort.py:4568
Function
test_isort_support_custom_groups_above_stdlib_that_contain_stdlib_modules_issue_1407
Test to ensure it is possible to declare custom groups above standard library that include modules from the standard library. See: https://git
tests/unit/test_ticketed_features.py:452
Function
test_isort_supports_append_only_imports_issue_727
Test to ensure isort provides a way to only add imports as an append. See: https://github.com/pycqa/isort/issues/727.
tests/unit/test_ticketed_features.py:205
Function
test_isort_supports_shared_profiles_issue_970
Test to ensure isort provides a way to use shared profiles. See: https://github.com/pycqa/isort/issues/970.
tests/unit/test_ticketed_features.py:232
Function
test_isort_treats_src_paths_same_as_from_config_as_cli_issue_1711
(tmpdir)
tests/unit/test_regressions.py:1623
Function
test_isort_warns_when_known_sections_dont_match_issue_1331
Test to ensure that isort warns if there is a mismatch between sections and known_sections. See: https://github.com/pycqa/isort/issues/1331.
tests/unit/test_ticketed_features.py:171
Function
test_isort_with_single_character_import
Tests to ensure isort handles single capatilized single character imports as class objects by default See Issue #376: https://github.com/pycq
tests/unit/test_isort.py:4516
Function
test_isort_with_stdin
(capsys)
tests/unit/test_main.py:489
Function
test_keep_comments
Test to ensure isort properly keeps comments in tact after sorting.
tests/unit/test_isort.py:1787
Function
test_known_pattern_path_expansion
Test to ensure patterns ending with path sep gets expanded and nested packages treated as known patterns.
tests/unit/test_isort.py:1123
Method
test_known_settings
(self)
tests/unit/test_settings.py:25
Function
test_length_sort
Test setting isort to sort on length instead of alphabetically.
tests/unit/test_isort.py:608
Function
test_length_sort_section
Test setting isort to sort on length instead of alphabetically for a specific section.
tests/unit/test_isort.py:646
Function
test_length_sort_straight
Test setting isort to sort straight imports on length instead of alphabetically.
tests/unit/test_isort.py:625
Function
test_line__comment_with_brackets__expects_unchanged_comment
(multi_line_output, expected)
tests/unit/test_wrap.py:40
Function
test_line_endings_are_detected_ignoring_whitespace
Test to ensure line endings are not converted
tests/unit/test_isort.py:3421
Function
test_line_length
Ensure isort enforces the set line_length.
tests/unit/test_isort.py:170
Function
test_lines_between_sections
Test to ensure lines_between_sections works
tests/unit/test_isort.py:2808
Function
test_literal_sort_at_top_of_file_issue_1792
()
tests/unit/test_regressions.py:1828
Function
test_long_alias_using_paren_issue_957
()
tests/unit/test_isort.py:3098
Function
test_long_import_wrap_support_with_mode_2
Test to ensure mode 2 still allows wrapped imports with slash
tests/unit/test_isort.py:3361
Function
test_long_line_comments
Ensure isort correctly handles comments at the end of extremely long lines
tests/unit/test_isort.py:2084
Function
test_long_single_line
Test to ensure long single lines get handled correctly
tests/unit/test_isort.py:3010
Function
test_main
(capsys, tmpdir)
tests/unit/test_main.py:161
Function
test_missing_default_section
(tmpdir)
tests/unit/test_main.py:140
Function
test_module
(src_path)
tests/unit/test_place.py:9
Function
test_monkey_patched_urllib
()
tests/unit/test_isort.py:3678
Function
test_move_class_issue_751
()
tests/unit/test_isort.py:4471
Function
test_moving_comments_issue_726
()
tests/unit/test_regressions.py:28
Function
test_multiline_import
Test the case where import spawns multiple lines with inconsistent indentation.
tests/unit/test_isort.py:1589
Function
test_multiline_split_on_dot
Test to ensure isort correctly handles multiline imports, even when split right after a '.'
tests/unit/test_isort.py:1841
Function
test_multiple_aliases
Test to ensure isort will retain multiple aliases. See issue #1037
tests/unit/test_isort.py:5168
Function
test_multiple_as_imports
()
tests/unit/test_isort.py:3866
Function
test_multiple_configs
(capsys, tmpdir)
tests/unit/test_main.py:1238
Function
test_multiple_src_paths
Ensure that isort has consistent behavior with multiple source paths
tests/unit/test_main.py:1371
Function
test_namespace_package_placement
(examples_path)
tests/unit/test_place.py:33
Function
test_nested_comment_handling
()
tests/unit/test_isort.py:5084
Function
test_new_lines_are_preserved
()
tests/unit/test_isort.py:3611
Function
test_no_additional_lines_issue_358
Test to ensure issue 358 is resolved and running isort multiple times does not add extra newlines
tests/unit/test_isort.py:2843
Function
test_no_extra_blank_lines_in_methods_issue_1293
Test to ensure isort isn't introducing extra lines in methods that contain imports See: https://github.com/pycqa/isort/issues/1293
tests/unit/test_regressions.py:164
Function
test_no_extra_lines_for_imports_in_functions_issue_1277
Test to ensure isort doesn't introduce extra blank lines for imports within function. See: https://github.com/pycqa/isort/issues/1277
tests/unit/test_regressions.py:146
Function
test_no_extra_lines_issue_557
Test to ensure no extra lines are prepended
tests/unit/test_isort.py:3337
Function
test_no_inline_sort
Test to ensure multiple `from` imports in one line are not sorted if `--no-inline-sort` flag is enabled. If `--force-single-line-imports` flag
tests/unit/test_isort.py:3485
Function
test_no_lines_before_empty_section
()
tests/unit/test_isort.py:3471
Function
test_no_lines_too_long
Test to ensure no lines end up too long. See issue: #1015
tests/unit/test_isort.py:5219
Function
test_no_sections_with_as_import
Test to ensure no_sections work with as import.
tests/unit/test_isort.py:5211
Function
test_no_sections_with_future
Test to ensure no_sections works with future. See issue #807
tests/unit/test_isort.py:5199
Function
test_no_standard_library_placement
()
tests/unit/test_place.py:26
Function
test_noqa_issue_1065
()
tests/unit/test_isort.py:5019
Function
test_noqa_issue_679
Test to ensure that NOQA notation is being observed as expected if honor_noqa is set to `True`
tests/unit/test_isort.py:4121
Function
test_noqa_multiline_hanging_indent
()
tests/unit/test_isort.py:5632
Function
test_normalize_line
(raw_line, expected)
tests/unit/test_parse.py:107
Function
test_not_splitted_sections
()
tests/unit/test_isort.py:3431
Function
test_only_modified_flag
(tmpdir, capsys)
tests/unit/test_main.py:950
Function
test_only_sections
Test to ensure that the within sections relative position of imports are maintained
tests/unit/test_isort.py:5334
Method
test_open
(self, tmpdir)
tests/unit/test_io.py:30
Function
test_open_stack_code_snippet_one
()
tests/unit/profiles/test_open_stack.py:8
Function
test_open_stack_code_snippet_three
()
tests/unit/profiles/test_open_stack.py:86
Function
test_open_stack_code_snippet_two
()
tests/unit/profiles/test_open_stack.py:36
Function
test_order_by_type
()
tests/unit/test_isort.py:1645
Function
test_other_ask_to_apply
(imperfect)
tests/unit/test_api.py:49
Function
test_other_file_encodings
Test to ensure file encoding is respected
tests/unit/test_isort.py:2475
Function
test_other_file_encodings_in_place
Test to ensure file encoding is respected when overwritten in place.
tests/unit/test_isort.py:2485
Function
test_output_modes
Test setting isort to use various output modes works as expected
tests/unit/test_isort.py:261
Function
test_pandas
(tmpdir)
tests/integration/test_projects_using_isort.py:47
Function
test_parens_in_comment
Test to ensure isort can handle parens placed in comments. See issue #1103
tests/unit/test_isort.py:5178
Function
test_parse_args
()
tests/unit/test_main.py:73
Function
test_path
()
tests/unit/conftest.py:23
Method
test_pickleable
(self)
tests/unit/test_exceptions.py:13
Function
test_place_comments
Ensure manually placing imports works as expected
tests/unit/test_isort.py:2122
Function
test_placement_control
Ensure that most specific placement control match wins
tests/unit/test_isort.py:2152
Function
test_plone
(tmpdir)
tests/integration/test_projects_using_isort.py:42
Function
test_plone_code_snippet_five
()
tests/unit/profiles/test_plone.py:91
Function
test_plone_code_snippet_four
()
tests/unit/profiles/test_plone.py:75
Function
test_plone_code_snippet_one
()
tests/unit/profiles/test_plone.py:8
Function
test_plone_code_snippet_three
()
tests/unit/profiles/test_plone.py:61
Function
test_plone_code_snippet_two
()
tests/unit/profiles/test_plone.py:32
Function
test_plone_style
Test to ensure isort correctly plone style imports
tests/unit/test_isort.py:2959
Function
test_preconvert
()
tests/unit/test_main.py:112
← previous
next →
501–600 of 739, ranked by callers