MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions820 in github.com/PyCQA/isort

Functiontest_module
(src_path)
tests/unit/test_place.py:9
Functiontest_monkey_patched_urllib
()
tests/unit/test_isort.py:3702
Functiontest_move_class_issue_751
()
tests/unit/test_isort.py:4495
Functiontest_moving_comments_issue_726
()
tests/unit/test_regressions.py:30
Functiontest_multiline_import
Test the case where import spawns multiple lines with inconsistent indentation.
tests/unit/test_isort.py:1589
Functiontest_multiline_split_on_dot
Test to ensure isort correctly handles multiline imports, even when split right after a '.'
tests/unit/test_isort.py:1865
Functiontest_multiple_aliases
Test to ensure isort will retain multiple aliases. See issue #1037
tests/unit/test_isort.py:5192
Functiontest_multiple_as_imports
()
tests/unit/test_isort.py:3890
Functiontest_multiple_configs
(capsys, tmpdir)
tests/unit/test_main.py:1203
Functiontest_multiple_src_paths
Ensure that isort has consistent behavior with multiple source paths
tests/unit/test_main.py:1336
Functiontest_namespace_package_placement
(examples_path)
tests/unit/test_place.py:33
Functiontest_nested_comment_handling
()
tests/unit/test_isort.py:5108
Functiontest_new_lines_are_preserved
()
tests/unit/test_isort.py:3635
Functiontest_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:2867
Functiontest_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:166
Functiontest_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:148
Functiontest_no_extra_lines_issue_557
Test to ensure no extra lines are prepended
tests/unit/test_isort.py:3361
Functiontest_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:3509
Functiontest_no_lines_before_empty_section
()
tests/unit/test_isort.py:3495
Functiontest_no_lines_too_long
Test to ensure no lines end up too long. See issue: #1015
tests/unit/test_isort.py:5243
Functiontest_no_sections_mode_with_lazy_imports
lazy imports are supported in no_sections mode.
tests/unit/test_lazy_imports.py:111
Functiontest_no_sections_with_as_import
Test to ensure no_sections work with as import.
tests/unit/test_isort.py:5235
Functiontest_no_sections_with_future
Test to ensure no_sections works with future. See issue #807
tests/unit/test_isort.py:5223
Functiontest_no_standard_library_placement
()
tests/unit/test_place.py:26
Functiontest_noqa_added_to_long_as_import_with_opening_comment_issue_2093
A long ``as`` import with opening-line comment must get ``# NOQA`` in NOQA mode. When ``use_parentheses`` is enabled, opening-line comments are k
tests/unit/test_regressions.py:2281
Functiontest_noqa_added_to_long_as_import_with_opening_line_comment_issue_2093
A long ``as`` import with an opening-line comment and ``use_parentheses``. When ``use_parentheses`` is enabled and the import carries an opening-
tests/unit/test_regressions.py:2342
Functiontest_noqa_added_to_long_combined_straight_imports_issue_2093
Long combined straight imports must get ``# NOQA`` in NOQA mode. With ``combine_straight_imports`` enabled, multiple ``import`` statements ar
tests/unit/test_regressions.py:2305
Functiontest_noqa_added_to_long_combined_straight_imports_with_bare_comment_issue_2093
A bare ``#`` comment with ``combine_straight_imports`` gets ``# NOQA``. A bare ``#`` with no text parses to an empty comment string. When such a
tests/unit/test_regressions.py:2383
Functiontest_noqa_added_to_long_force_single_line_as_import_with_comment_issue_2093
A long ``as`` import with inline comment must get ``# NOQA`` in NOQA mode. With ``force_single_line`` an aliased import that carries an inline co
tests/unit/test_regressions.py:2256
Functiontest_noqa_added_to_long_straight_import_issue_2093
Long straight imports must get ``# NOQA`` in NOQA mode. Straight imports (``import x`` or ``import x as y``) that exceed the line length were
tests/unit/test_regressions.py:2326
Functiontest_noqa_issue_1065
()
tests/unit/test_isort.py:5043
Functiontest_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:4145
Functiontest_noqa_multiline_hanging_indent
()
tests/unit/test_isort.py:5734
Functiontest_noqa_wrap_mode_does_not_accumulate_spaces_with_as_import
A long ``as`` import in NOQA mode must not grow extra spaces before ``# NOQA``. With ``force_single_line`` an aliased import that overflows the l
tests/unit/test_regressions.py:2135
Functiontest_noqa_wrap_mode_idempotent_with_existing_comment
Ensure ``multi_line_output=NOQA`` does not keep prepending ``NOQA`` to an import that already carries its own comment. In NOQA mode isort app
tests/unit/test_regressions.py:2104
Functiontest_normalize_line
(raw_line, expected)
tests/unit/test_parse.py:108
Functiontest_not_splitted_sections
()
tests/unit/test_isort.py:3455
Functiontest_only_modified_flag
(tmpdir, capsys)
tests/unit/test_main.py:915
Functiontest_only_sections
Test to ensure that the within sections relative position of imports are maintained
tests/unit/test_isort.py:5346
Methodtest_open
(self, tmpdir)
tests/unit/test_io.py:30
Functiontest_open_stack_code_snippet_one
()
tests/unit/profiles/test_open_stack.py:8
Functiontest_open_stack_code_snippet_three
()
tests/unit/profiles/test_open_stack.py:86
Functiontest_open_stack_code_snippet_two
()
tests/unit/profiles/test_open_stack.py:36
Functiontest_order_by_type
()
tests/unit/test_isort.py:1645
Functiontest_other_ask_to_apply
(imperfect)
tests/unit/test_api.py:49
Functiontest_other_file_encodings
Test to ensure file encoding is respected
tests/unit/test_isort.py:2499
Functiontest_other_file_encodings_in_place
Test to ensure file encoding is respected when overwritten in place.
tests/unit/test_isort.py:2509
Functiontest_output_modes
Test setting isort to use various output modes works as expected
tests/unit/test_isort.py:261
Functiontest_pandas
(tmpdir)
tests/integration/test_projects_using_isort.py:46
Functiontest_parens_in_comment
Test to ensure isort can handle parens placed in comments. See issue #1103
tests/unit/test_isort.py:5202
Functiontest_parse_args
()
tests/unit/test_main.py:74
Functiontest_path
()
tests/unit/conftest.py:23
Methodtest_pickleable
(self)
tests/unit/test_exceptions.py:13
Functiontest_place_comments
Ensure manually placing imports works as expected
tests/unit/test_isort.py:2146
Functiontest_placement_control
Ensure that most specific placement control match wins
tests/unit/test_isort.py:2176
Functiontest_plone
(tmpdir)
tests/integration/test_projects_using_isort.py:38
Functiontest_plone_code_snippet_five
()
tests/unit/profiles/test_plone.py:91
Functiontest_plone_code_snippet_four
()
tests/unit/profiles/test_plone.py:75
Functiontest_plone_code_snippet_one
()
tests/unit/profiles/test_plone.py:8
Functiontest_plone_code_snippet_three
()
tests/unit/profiles/test_plone.py:61
Functiontest_plone_code_snippet_two
()
tests/unit/profiles/test_plone.py:32
Functiontest_plone_style
Test to ensure isort correctly plone style imports
tests/unit/test_isort.py:2983
Functiontest_preconvert
()
tests/unit/test_main.py:113
Functiontest_products_zopetree
(tmpdir)
tests/integration/test_projects_using_isort.py:87
Functiontest_pycharm_snippet_one
()
tests/unit/profiles/test_pycharm.py:8
Functiontest_pyi_formatting_issue_942
(tmpdir)
tests/unit/test_isort.py:4464
Functiontest_pylint
(tmpdir)
tests/integration/test_projects_using_isort.py:56
Functiontest_pylint_comments_incorrectly_wrapped_issue_571
Test to ensure pylint comments don't get wrapped
tests/unit/test_isort.py:3397
Functiontest_pyproject_conf_file
Ensure that modules for custom sections parsed as list from config file and isort result is correct
tests/unit/test_isort.py:2668
Functiontest_pyramid
(tmpdir)
tests/integration/test_projects_using_isort.py:79
Functiontest_python_future_category
Test to ensure a manual python future category will work as needed to install aliases see: Issue #1005
tests/unit/test_isort.py:5259
Functiontest_python_version
()
tests/unit/test_isort.py:4520
Functiontest_qa_comment_case
()
tests/unit/test_isort.py:598
Functiontest_quiet
(tmpdir, capfd, quiet: bool)
tests/unit/test_isort.py:3743
Functiontest_quote_fallback_for_embedded_quote
()
tests/unit/test_literal.py:64
Functiontest_quotes_in_file
Ensure imports within triple quotes don't get imported.
tests/unit/test_isort.py:970
Functiontest_ran_against_root
()
tests/unit/test_main.py:157
Methodtest_read
(self, tmpdir)
tests/unit/test_io.py:12
Functiontest_reexport
()
tests/unit/test_isort.py:5598
Functiontest_reexport_bare
()
tests/unit/test_isort.py:5639
Functiontest_reexport_leave_alone_if_not_enabled
()
tests/unit/test_isort.py:5606
Functiontest_reexport_list
()
tests/unit/test_isort.py:5623
Functiontest_reexport_multiline
()
tests/unit/test_isort.py:5612
Functiontest_reexport_multiline_import
()
tests/unit/test_isort.py:5679
Functiontest_reexport_multiline_in_center
()
tests/unit/test_isort.py:5696
Functiontest_reexport_multiline_long_rollback
()
tests/unit/test_isort.py:5717
Functiontest_reexport_no_spaces
()
tests/unit/test_isort.py:5647
Functiontest_reexport_not_first_line
()
tests/unit/test_isort.py:5655
Functiontest_reexport_not_last_line
()
tests/unit/test_isort.py:5667
Functiontest_reexport_set
()
tests/unit/test_isort.py:5631
Functiontest_relative_import_of_a_module
Imports can be dynamically created (PEP302) and is used by modules such as six. This test ensures that these types of imports are still sorted to
tests/unit/test_isort.py:3525
Functiontest_relative_import_with_space
Tests the case where the relation and the module that is being imported from is separated with a space.
tests/unit/test_isort.py:1575
Functiontest_remove_imports
Ensures removing imports works as expected.
tests/unit/test_isort.py:933
Functiontest_reverse_relative_combined_with_force_sort_within_sections_issue_1395
Test to ensure reverse relative combines well with other common isort settings. See: https://github.com/pycqa/isort/issues/1395.
tests/unit/test_regressions.py:618
Functiontest_reverse_relative_imports_issue_417
()
tests/unit/test_isort.py:3846
Functiontest_reverse_sort_relative_in_force_sorted_sections_issue_1659
Ensure reverse ordered relative imports are sorted within sections
tests/unit/test_isort.py:3315
Functiontest_ruff_reference_example
Reproduce the canonical example from the ruff issue tracker. See https://github.com/astral-sh/ruff/issues/21305.
tests/unit/test_lazy_imports.py:60
Functiontest_safety_skips
(tmpdir, enabled: bool)
tests/unit/test_isort.py:3759
Functiontest_same_line_statements
Ensure isort correctly handles the case where a single line contains multiple statements including an import
tests/unit/test_isort.py:2097
Functiontest_sections_parsed_correct
Ensure that modules for custom sections parsed as list from config file and isort result is correct
tests/unit/test_isort.py:2643
← previousnext →601–700 of 820, ranked by callers