Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyCQA/isort
/ functions
Functions
829 in github.com/PyCQA/isort
⨍
Functions
829
◇
Types & classes
59
↳
Endpoints
8
↓ 1 callers
Method
add_pending
(self, key: Key, flag: int)
isort/_vendored/tomli/_parser.py:237
↓ 1 callers
Method
append_nest_to_list
(self, key: Key)
isort/_vendored/tomli/_parser.py:304
↓ 1 callers
Function
ask_whether_to_apply_changes_to_file
(file_path: str)
isort/format.py:76
↓ 1 callers
Function
assignments
(code: str)
isort/literal.py:15
↓ 1 callers
Function
black_format
Formats the provided code snippet using black
tests/unit/profiles/test_black.py:7
↓ 1 callers
Function
build_input_content
()
tests/unit/test_main.py:379
↓ 1 callers
Function
cached_tz
(hour_str: str, minute_str: str, sign_str: str)
isort/_vendored/tomli/_re.py:97
↓ 1 callers
Function
config_default
(default: Any)
scripts/build_config_option_docs.py:346
↓ 1 callers
Function
config_options
()
scripts/build_config_option_docs.py:367
↓ 1 callers
Function
configs
Generate arbitrary Config objects.
tests/integration/test_hypothesmith.py:36
↓ 1 callers
Function
configs
Generate arbitrary Config objects.
tests/integration/test_setting_combinations.py:20
↓ 1 callers
Function
create_dict_rule
(src: str, pos: Pos, out: Output)
isort/_vendored/tomli/_parser.py:372
↓ 1 callers
Function
create_list_rule
(src: str, pos: Pos, out: Output)
isort/_vendored/tomli/_parser.py:390
↓ 1 callers
Function
document_text
()
scripts/build_profile_docs.py:32
↓ 1 callers
Function
document_text
()
scripts/build_config_option_docs.py:417
↓ 1 callers
Method
finalize_pending
(self)
isort/_vendored/tomli/_parser.py:240
↓ 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:781
↓ 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:569
↓ 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:28
↓ 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:114
↓ 1 callers
Function
human
(name: str)
scripts/build_config_option_docs.py:358
↓ 1 callers
Function
is_comment
(line: str | None)
isort/output.py:880
↓ 1 callers
Function
is_unicode_scalar_value
(codepoint: int)
isort/_vendored/tomli/_parser.py:748
↓ 1 callers
Function
key_value_rule
(src: str, pos: Pos, out: Output, header: Key, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:411
↓ 1 callers
Function
loads
Parse TOML from a string.
isort/_vendored/tomli/_parser.py:157
↓ 1 callers
Function
main_check
(args)
tests/unit/test_main.py:1065
↓ 1 callers
Function
make_safe_parse_float
A decorator to make `parse_float` safe. `parse_float` must not return dicts or lists, because these types would be mixed with parsed TOML tab
isort/_vendored/tomli/_parser.py:752
↓ 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:59
↓ 1 callers
Function
match_to_localtime
(match: re.Match[str])
isort/_vendored/tomli/_re.py:107
↓ 1 callers
Function
match_to_number
(match: re.Match[str], parse_float: ParseFloat)
isort/_vendored/tomli/_re.py:114
↓ 1 callers
Function
parse
Parses import lines for comments and returns back the import statement and the associated comment. Returns ``None`` as the comment when no ``
isort/comments.py:1
↓ 1 callers
Function
parse_array
( src: str, pos: Pos, parse_float: ParseFloat, nest_lvl: int )
isort/_vendored/tomli/_parser.py:498
↓ 1 callers
Function
parse_basic_str_escape
(src: str, pos: Pos, *, multiline: bool = False)
isort/_vendored/tomli/_parser.py:560
↓ 1 callers
Function
parse_hex_char
(src: str, pos: Pos, hex_len: int)
isort/_vendored/tomli/_parser.py:593
↓ 1 callers
Function
parse_inline_table
( src: str, pos: Pos, parse_float: ParseFloat, nest_lvl: int )
isort/_vendored/tomli/_parser.py:524
↓ 1 callers
Function
parse_key_part
(src: str, pos: Pos)
isort/_vendored/tomli/_parser.py:477
↓ 1 callers
Function
parse_multiline_str
(src: str, pos: Pos, *, literal: bool)
isort/_vendored/tomli/_parser.py:611
↓ 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:5451
↓ 1 callers
Function
sort_imports
( file_name: str | Path, config: Config, check: bool = False, ask_to_apply: bool = False,
isort/main.py:57
↓ 1 callers
Method
sorting_function
(self)
isort/settings.py:684
↓ 1 callers
Method
unset_all
(self, key: Key)
isort/_vendored/tomli/_parser.py:245
↓ 1 callers
Function
vertical_hanging_indent
(**interface: Any)
isort/wrap_modes.py:167
↓ 1 callers
Function
write_document
()
scripts/build_profile_docs.py:36
↓ 1 callers
Function
write_document
()
scripts/build_config_option_docs.py:421
Method
__hash__
(self)
isort/settings.py:273
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 | Path)
isort/exceptions.py:21
Method
__init__
(self, file_path: str)
isort/exceptions.py:33
Method
__init__
(self, file_path: str)
isort/exceptions.py:43
Method
__init__
(self, file_path: str, **kwargs: str)
isort/exceptions.py:63
Method
__init__
(self, file_path: str, **kwargs: str)
isort/exceptions.py:72
Method
__init__
(self, profile: str)
isort/exceptions.py:83
Method
__init__
(self, sort_order: str, available_sort_orders: list[str])
isort/exceptions.py:94
Method
__init__
(self, formatter: str)
isort/exceptions.py:106
Method
__init__
(self, code: str, original_error: Exception | type[Exception])
isort/exceptions.py:116
Method
__init__
(self, kind: type, expected_kind: type)
isort/exceptions.py:131
Method
__init__
(self, code: str)
isort/exceptions.py:145
Method
__init__
(self, unsupported_settings: dict[str, dict[str, object]])
isort/exceptions.py:167
Method
__init__
(self, filename: str | Path)
isort/exceptions.py:184
Method
__init__
(self, import_module: str, section: str)
isort/exceptions.py:192
Method
__init__
( self, settings_file: str = "", settings_path: str | Path = "", config: _Conf
isort/settings.py:283
Method
__init__
(self, incorrectly_sorted: bool, skipped: bool, supported_encoding: bool)
isort/main.py:46
Method
__init__
( self, msg: str | type[DEPRECATED_DEFAULT] = DEPRECATED_DEFAULT, doc: str | type[DEPR
isort/_vendored/tomli/_parser.py:100
Method
__init__
(self)
isort/_vendored/tomli/_parser.py:283
Method
__init__
(self)
isort/_vendored/tomli/_parser.py:317
Method
__post_init__
(self)
isort/settings.py:239
Method
__post_init__
(self)
scripts/build_config_option_docs.py:45
Method
__reduce__
(self)
isort/exceptions.py:14
Method
__reduce__
(self)
isort/main.py:51
Method
__str__
(self)
isort/identify.py:43
Method
__str__
(self)
scripts/build_config_option_docs.py:104
Method
__str__
(self)
scripts/build_config_option_docs.py:322
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], config: Config, prefix_length: int)
isort/literal.py:132
Function
_generate_includes
Create Sphinx-friendly copies of some files at build time.
docs/conf.py:44
Function
_get_next_line
()
isort/parse.py:226
Function
_list
(value: list[Any], config: Config, prefix_length: int)
isort/literal.py:141
Function
_preconvert
Preconverts objects from native types into JSONifiable types
isort/main.py:899
Function
_set
(value: set[Any], config: Config, prefix_length: int)
isort/literal.py:153
Function
_tuple
(value: tuple[Any, ...], config: Config, prefix_length: int)
isort/literal.py:159
Function
_unique_list
(value: list[Any], config: Config, prefix_length: int)
isort/literal.py:147
Function
_unique_tuple
(value: tuple[Any, ...], config: Config, prefix_length: int)
isort/literal.py:165
Function
_wrap_mode
Registers an individual wrap mode. Function name and order are significant.
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:15
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:30
Function
backslash_grid
(**interface: Any)
isort/wrap_modes.py:364
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:102
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:305
← previous
next →
101–200 of 829, ranked by callers