MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions829 in github.com/PyCQA/isort

↓ 1 callersMethodadd_pending
(self, key: Key, flag: int)
isort/_vendored/tomli/_parser.py:237
↓ 1 callersMethodappend_nest_to_list
(self, key: Key)
isort/_vendored/tomli/_parser.py:304
↓ 1 callersFunctionask_whether_to_apply_changes_to_file
(file_path: str)
isort/format.py:76
↓ 1 callersFunctionassignments
(code: str)
isort/literal.py:15
↓ 1 callersFunctionblack_format
Formats the provided code snippet using black
tests/unit/profiles/test_black.py:7
↓ 1 callersFunctionbuild_input_content
()
tests/unit/test_main.py:379
↓ 1 callersFunctioncached_tz
(hour_str: str, minute_str: str, sign_str: str)
isort/_vendored/tomli/_re.py:97
↓ 1 callersFunctionconfig_default
(default: Any)
scripts/build_config_option_docs.py:346
↓ 1 callersFunctionconfig_options
()
scripts/build_config_option_docs.py:367
↓ 1 callersFunctionconfigs
Generate arbitrary Config objects.
tests/integration/test_hypothesmith.py:36
↓ 1 callersFunctionconfigs
Generate arbitrary Config objects.
tests/integration/test_setting_combinations.py:20
↓ 1 callersFunctioncreate_dict_rule
(src: str, pos: Pos, out: Output)
isort/_vendored/tomli/_parser.py:372
↓ 1 callersFunctioncreate_list_rule
(src: str, pos: Pos, out: Output)
isort/_vendored/tomli/_parser.py:390
↓ 1 callersFunctiondocument_text
()
scripts/build_profile_docs.py:32
↓ 1 callersFunctiondocument_text
()
scripts/build_config_option_docs.py:417
↓ 1 callersMethodfinalize_pending
(self)
isort/_vendored/tomli/_parser.py:240
↓ 1 callersFunctionfind_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 callersFunctionfind_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 callersFunctionformat_natural
(import_line: str)
isort/format.py:31
↓ 1 callersFunctionformat_profile
(profile_name: str, profile: dict[str, Any])
scripts/build_profile_docs.py:22
↓ 1 callersFunctionformat_simplified
(import_line: str)
isort/format.py:20
↓ 1 callersFunctionformatter_from_string
(name: str)
isort/wrap_modes.py:17
↓ 1 callersMethodfrom_contents
(contents: str, filename: str)
isort/io.py:28
↓ 1 callersFunctionget_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 callersFunctionhanging_indent
(**interface: Any)
isort/wrap_modes.py:114
↓ 1 callersFunctionhuman
(name: str)
scripts/build_config_option_docs.py:358
↓ 1 callersFunctionis_comment
(line: str | None)
isort/output.py:880
↓ 1 callersFunctionis_unicode_scalar_value
(codepoint: int)
isort/_vendored/tomli/_parser.py:748
↓ 1 callersFunctionkey_value_rule
(src: str, pos: Pos, out: Output, header: Key, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:411
↓ 1 callersFunctionloads
Parse TOML from a string.
isort/_vendored/tomli/_parser.py:157
↓ 1 callersFunctionmain_check
(args)
tests/unit/test_main.py:1065
↓ 1 callersFunctionmake_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 callersFunctionmatch_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 callersFunctionmatch_to_localtime
(match: re.Match[str])
isort/_vendored/tomli/_re.py:107
↓ 1 callersFunctionmatch_to_number
(match: re.Match[str], parse_float: ParseFloat)
isort/_vendored/tomli/_re.py:114
↓ 1 callersFunctionparse
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 callersFunctionparse_array
( src: str, pos: Pos, parse_float: ParseFloat, nest_lvl: int )
isort/_vendored/tomli/_parser.py:498
↓ 1 callersFunctionparse_basic_str_escape
(src: str, pos: Pos, *, multiline: bool = False)
isort/_vendored/tomli/_parser.py:560
↓ 1 callersFunctionparse_hex_char
(src: str, pos: Pos, hex_len: int)
isort/_vendored/tomli/_parser.py:593
↓ 1 callersFunctionparse_inline_table
( src: str, pos: Pos, parse_float: ParseFloat, nest_lvl: int )
isort/_vendored/tomli/_parser.py:524
↓ 1 callersFunctionparse_key_part
(src: str, pos: Pos)
isort/_vendored/tomli/_parser.py:477
↓ 1 callersFunctionparse_multiline_str
(src: str, pos: Pos, *, literal: bool)
isort/_vendored/tomli/_parser.py:611
↓ 1 callersMethodreadable
(self, *args, **kwargs)
tests/unit/utils.py:12
↓ 1 callersFunctionremove_whitespace
(content: str, line_separator: str = "\n")
isort/format.py:88
↓ 1 callersMethodseek
(self, offset: int, whence: int = os.SEEK_SET, /)
tests/unit/test_isort.py:5451
↓ 1 callersFunctionsort_imports
( file_name: str | Path, config: Config, check: bool = False, ask_to_apply: bool = False,
isort/main.py:57
↓ 1 callersMethodsorting_function
(self)
isort/settings.py:684
↓ 1 callersMethodunset_all
(self, key: Key)
isort/_vendored/tomli/_parser.py:245
↓ 1 callersFunctionvertical_hanging_indent
(**interface: Any)
isort/wrap_modes.py:167
↓ 1 callersFunctionwrite_document
()
scripts/build_profile_docs.py:36
↓ 1 callersFunctionwrite_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
Functionadd_to_line
Returns a string with comments added if removed is not set.
isort/comments.py:15
Functionassignment
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
Functionbackslash_grid
(**interface: Any)
isort/wrap_modes.py:364
Functionblack_format_import_section
Formats the given import section using black.
example_isort_formatting_plugin/example_isort_formatting_plugin.py:6
Functioncheck_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
Functioncheck_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
← previousnext →101–200 of 829, ranked by callers