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
↓ 1 callers
Function
document_text
()
scripts/build_config_option_docs.py:418
↓ 1 callers
Function
find_all_configs
Looks for config files in the path provided and in all of its sub-directories. Parses and stores any config file encountered in a trie and re
isort/settings.py:788
↓ 1 callers
Function
find_imports_in_file
Finds and returns all imports within the provided source file. - **filename**: The name or Path of the file to look for imports in. - **exten
isort/api.py:579
↓ 1 callers
Function
format_natural
(import_line: str)
isort/format.py:31
↓ 1 callers
Function
format_profile
(profile_name: str, profile: dict[str, Any])
scripts/build_profile_docs.py:22
↓ 1 callers
Function
format_simplified
(import_line: str)
isort/format.py:20
↓ 1 callers
Function
formatter_from_string
(name: str)
isort/wrap_modes.py:17
↓ 1 callers
Method
from_contents
(contents: str, filename: str)
isort/io.py:31
↓ 1 callers
Function
get_lines
Run a command and return lines of output :param str command: the command to run :returns: list of whitespace-stripped lines output by command
isort/hooks.py:24
↓ 1 callers
Function
hanging_indent
(**interface: Any)
isort/wrap_modes.py:118
↓ 1 callers
Function
human
(name: str)
scripts/build_config_option_docs.py:359
↓ 1 callers
Function
import_type
If the current line is an import line it will return its type (from or straight)
isort/parse.py:53
↓ 1 callers
Function
is_comment
(line: str | None)
isort/output.py:675
↓ 1 callers
Function
is_unicode_scalar_value
(codepoint: int)
isort/_vendored/tomli/_parser.py:649
↓ 1 callers
Function
key_value_rule
(src: str, pos: Pos, out: Output, header: Key, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:321
↓ 1 callers
Function
loads
Parse TOML from a string.
isort/_vendored/tomli/_parser.py:69
↓ 1 callers
Function
main_check
(args)
tests/unit/test_main.py:1100
↓ 1 callers
Function
match_to_datetime
Convert a `RE_DATETIME` match to `datetime.datetime` or `datetime.date`. Raises ValueError if the match does not correspond to a valid date o
isort/_vendored/tomli/_re.py:47
↓ 1 callers
Function
match_to_localtime
(match: "re.Match")
isort/_vendored/tomli/_re.py:91
↓ 1 callers
Function
match_to_number
(match: "re.Match", parse_float: "ParseFloat")
isort/_vendored/tomli/_re.py:97
↓ 1 callers
Function
module_with_reason
Returns the section placement for the given module name alongside the reasoning.
isort/place.py:22
↓ 1 callers
Function
parse
Parses import lines for comments and returns back the import statement and the associated comment.
isort/comments.py:1
↓ 1 callers
Function
parse_array
(src: str, pos: Pos, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:396
↓ 1 callers
Function
parse_basic_str_escape
( # noqa: C901 src: str, pos: Pos, *, multiline: bool = False )
isort/_vendored/tomli/_parser.py:452
↓ 1 callers
Function
parse_hex_char
(src: str, pos: Pos, hex_len: int)
isort/_vendored/tomli/_parser.py:487
↓ 1 callers
Function
parse_inline_table
(src: str, pos: Pos, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:420
↓ 1 callers
Function
parse_key_part
(src: str, pos: Pos)
isort/_vendored/tomli/_parser.py:375
↓ 1 callers
Function
parse_multiline_str
(src: str, pos: Pos, *, literal: bool)
isort/_vendored/tomli/_parser.py:505
↓ 1 callers
Method
readable
(self, *args, **kwargs)
tests/unit/utils.py:12
↓ 1 callers
Function
remove_whitespace
(content: str, line_separator: str = "\n")
isort/format.py:88
↓ 1 callers
Method
seek
(self, offset: int, whence: int = os.SEEK_SET, /)
tests/unit/test_isort.py:5439
↓ 1 callers
Method
set_for_relative_key
(self, head_key: Key, rel_key: Key, flag: int)
isort/_vendored/tomli/_parser.py:151
↓ 1 callers
Function
skip_comments_and_array_ws
(src: str, pos: Pos)
isort/_vendored/tomli/_parser.py:273
↓ 1 callers
Function
sort_imports
( file_name: str, config: Config, check: bool = False, ask_to_apply: bool = False, write_t
isort/main.py:77
↓ 1 callers
Method
sorting_function
(self)
isort/settings.py:693
↓ 1 callers
Method
unset_all
(self, key: Key)
isort/_vendored/tomli/_parser.py:143
↓ 1 callers
Function
vertical_hanging_indent
(**interface: Any)
isort/wrap_modes.py:171
↓ 1 callers
Function
write_document
()
scripts/build_profile_docs.py:36
↓ 1 callers
Function
write_document
()
scripts/build_config_option_docs.py:422
Method
__hash__
(self)
isort/settings.py:275
Method
__init__
(self, config: Config)
isort/literal.py:17
Method
__init__
(self, config_file: str = "", config_data: dict[str, Any] | None = None)
isort/utils.py:9
Method
__init__
(self, config_file: str = "", config_data: dict[str, Any] | None = None)
isort/utils.py:23
Method
__init__
(self, error: str, success: str, output: TextIO | None)
isort/format.py:115
Method
__init__
(self, settings_path: str)
isort/exceptions.py:20
Method
__init__
(self, file_path: str)
isort/exceptions.py:32
Method
__init__
(self, file_path: str)
isort/exceptions.py:42
Method
__init__
(self, file_path: str, **kwargs: str)
isort/exceptions.py:62
Method
__init__
(self, file_path: str, **kwargs: str)
isort/exceptions.py:71
Method
__init__
(self, profile: str)
isort/exceptions.py:82
Method
__init__
(self, sort_order: str, available_sort_orders: list[str])
isort/exceptions.py:93
Method
__init__
(self, formatter: str)
isort/exceptions.py:105
Method
__init__
(self, code: str, original_error: Exception | type[Exception])
isort/exceptions.py:115
Method
__init__
(self, kind: type, expected_kind: type)
isort/exceptions.py:130
Method
__init__
(self, code: str)
isort/exceptions.py:144
Method
__init__
(self, unsupported_settings: dict[str, dict[str, str]])
isort/exceptions.py:166
Method
__init__
(self, filename: str | Path)
isort/exceptions.py:183
Method
__init__
(self, import_module: str, section: str)
isort/exceptions.py:191
Method
__init__
( self, settings_file: str = "", settings_path: str = "", config: _Config | No
isort/settings.py:283
Method
__init__
(self, incorrectly_sorted: bool, skipped: bool, supported_encoding: bool)
isort/main.py:71
Method
__init__
(self)
isort/_vendored/tomli/_parser.py:140
Method
__init__
(self)
isort/_vendored/tomli/_parser.py:194
Method
__new__
( cls: type["_LineWithComments"], value: Any, comments: list[str] )
isort/output.py:664
Method
__post_init__
(self)
isort/settings.py:241
Method
__post_init__
(self)
scripts/build_config_option_docs.py:45
Method
__reduce__
(self)
isort/exceptions.py:13
Method
__str__
(self)
isort/identify.py:37
Method
__str__
(self)
scripts/build_config_option_docs.py:104
Method
__str__
(self)
scripts/build_config_option_docs.py:323
Function
_as_config
(kw)
tests/integration/test_hypothesmith.py:12
Function
_as_config
(kw)
tests/integration/test_setting_combinations.py:9
Function
_dict
(value: dict[Any, Any], printer: ISortPrettyPrinter)
isort/literal.py:89
Function
_list
(value: list[Any], printer: ISortPrettyPrinter)
isort/literal.py:94
Function
_preconvert
Preconverts objects from native types into JSONifyiable types
isort/main.py:956
Function
_set
(value: set[Any], printer: ISortPrettyPrinter)
isort/literal.py:104
Function
_tuple
(value: tuple[Any, ...], printer: ISortPrettyPrinter)
isort/literal.py:109
Function
_unique_list
(value: list[Any], printer: ISortPrettyPrinter)
isort/literal.py:99
Function
_unique_tuple
(value: tuple[Any, ...], printer: ISortPrettyPrinter)
isort/literal.py:114
Function
_wrap_mode
Registers an individual wrap mode. Function name and order are significant and used for creating enum.
isort/wrap_modes.py:37
Function
_wrap_mode_interface
Defines the common interface used by all wrap mode functions
isort/wrap_modes.py:21
Function
add_to_line
Returns a string with comments added if removed is not set.
isort/comments.py:12
Function
assignment
Sorts the literal present within the provided code against the provided sort type, returning the sorted representation of the source code.
isort/literal.py:39
Function
backslash_grid
(**interface: Any)
isort/wrap_modes.py:368
Function
black_format_import_section
Formats the given import section using black.
example_isort_formatting_plugin/example_isort_formatting_plugin.py:6
Function
check_code_string
Checks the order, format, and categorization of imports within the provided code string. Returns `True` if everything is correct, otherwise `False
isort/api.py:106
Function
check_file
Checks any imports within the provided file, returning `False` if any unsorted or incorrectly imports are found or `True` if no problems are ident
isort/api.py:308
Function
default_settings_path
(tmpdir_factory)
tests/unit/test_isort.py:61
Method
diff_line
(self, line: str)
isort/format.py:131
Function
examples_path
()
tests/unit/conftest.py:33
Method
extension
(self)
isort/io.py:36
Function
file_contents
Parses a python file taking out and categorizing imports.
isort/parse.py:147
Function
find
Finds and provides an iterator for all Python source files defined in paths.
isort/files.py:8
Function
find_imports_in_code
Finds and returns all imports within the provided code string. - **code**: The string of code with imports that need to be sorted. - **config
isort/api.py:510
Function
find_imports_in_paths
Finds and returns all imports within the provided source paths. - **paths**: A collection of paths to recursively look for imports within. -
isort/api.py:611
Function
from_string
(value: str)
isort/wrap_modes.py:13
Function
func
()
tests/unit/example_crlf_file.py:5
Function
git_hook
Git pre-commit hook to check staged files for isort errors :param bool strict - if True, return number of errors on exit, causing the hoo
isort/hooks.py:34
Function
grid
(**interface: Any)
isort/wrap_modes.py:48
Function
hanging_indent_with_parentheses
(**interface: Any)
isort/wrap_modes.py:312
Function
identify_imports_main
( argv: Sequence[str] | None = None, stdin: TextIOWrapper | None = None )
isort/main.py:969
← previous
next →
101–200 of 739, ranked by callers