MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions739 in github.com/PyCQA/isort

↓ 1 callersFunctiondocument_text
()
scripts/build_config_option_docs.py:418
↓ 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:788
↓ 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:579
↓ 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:31
↓ 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:118
↓ 1 callersFunctionhuman
(name: str)
scripts/build_config_option_docs.py:359
↓ 1 callersFunctionimport_type
If the current line is an import line it will return its type (from or straight)
isort/parse.py:53
↓ 1 callersFunctionis_comment
(line: str | None)
isort/output.py:675
↓ 1 callersFunctionis_unicode_scalar_value
(codepoint: int)
isort/_vendored/tomli/_parser.py:649
↓ 1 callersFunctionkey_value_rule
(src: str, pos: Pos, out: Output, header: Key, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:321
↓ 1 callersFunctionloads
Parse TOML from a string.
isort/_vendored/tomli/_parser.py:69
↓ 1 callersFunctionmain_check
(args)
tests/unit/test_main.py:1100
↓ 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:47
↓ 1 callersFunctionmatch_to_localtime
(match: "re.Match")
isort/_vendored/tomli/_re.py:91
↓ 1 callersFunctionmatch_to_number
(match: "re.Match", parse_float: "ParseFloat")
isort/_vendored/tomli/_re.py:97
↓ 1 callersFunctionmodule_with_reason
Returns the section placement for the given module name alongside the reasoning.
isort/place.py:22
↓ 1 callersFunctionparse
Parses import lines for comments and returns back the import statement and the associated comment.
isort/comments.py:1
↓ 1 callersFunctionparse_array
(src: str, pos: Pos, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:396
↓ 1 callersFunctionparse_basic_str_escape
( # noqa: C901 src: str, pos: Pos, *, multiline: bool = False )
isort/_vendored/tomli/_parser.py:452
↓ 1 callersFunctionparse_hex_char
(src: str, pos: Pos, hex_len: int)
isort/_vendored/tomli/_parser.py:487
↓ 1 callersFunctionparse_inline_table
(src: str, pos: Pos, parse_float: ParseFloat)
isort/_vendored/tomli/_parser.py:420
↓ 1 callersFunctionparse_key_part
(src: str, pos: Pos)
isort/_vendored/tomli/_parser.py:375
↓ 1 callersFunctionparse_multiline_str
(src: str, pos: Pos, *, literal: bool)
isort/_vendored/tomli/_parser.py:505
↓ 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:5439
↓ 1 callersMethodset_for_relative_key
(self, head_key: Key, rel_key: Key, flag: int)
isort/_vendored/tomli/_parser.py:151
↓ 1 callersFunctionskip_comments_and_array_ws
(src: str, pos: Pos)
isort/_vendored/tomli/_parser.py:273
↓ 1 callersFunctionsort_imports
( file_name: str, config: Config, check: bool = False, ask_to_apply: bool = False, write_t
isort/main.py:77
↓ 1 callersMethodsorting_function
(self)
isort/settings.py:693
↓ 1 callersMethodunset_all
(self, key: Key)
isort/_vendored/tomli/_parser.py:143
↓ 1 callersFunctionvertical_hanging_indent
(**interface: Any)
isort/wrap_modes.py:171
↓ 1 callersFunctionwrite_document
()
scripts/build_profile_docs.py:36
↓ 1 callersFunctionwrite_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
Functionadd_to_line
Returns a string with comments added if removed is not set.
isort/comments.py:12
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:39
Functionbackslash_grid
(**interface: Any)
isort/wrap_modes.py:368
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:106
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:308
Functiondefault_settings_path
(tmpdir_factory)
tests/unit/test_isort.py:61
Methoddiff_line
(self, line: str)
isort/format.py:131
Functionexamples_path
()
tests/unit/conftest.py:33
Methodextension
(self)
isort/io.py:36
Functionfile_contents
Parses a python file taking out and categorizing imports.
isort/parse.py:147
Functionfind
Finds and provides an iterator for all Python source files defined in paths.
isort/files.py:8
Functionfind_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
Functionfind_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
Functionfrom_string
(value: str)
isort/wrap_modes.py:13
Functionfunc
()
tests/unit/example_crlf_file.py:5
Functiongit_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
Functiongrid
(**interface: Any)
isort/wrap_modes.py:48
Functionhanging_indent_with_parentheses
(**interface: Any)
isort/wrap_modes.py:312
Functionidentify_imports_main
( argv: Sequence[str] | None = None, stdin: TextIOWrapper | None = None )
isort/main.py:969
← previousnext →101–200 of 739, ranked by callers