MCPcopy Create free account

hub / github.com/astral-sh/ruff / functions

Functions31,562 in github.com/astral-sh/ruff

Methodfrom_slice
(segments: &[&'a str])
crates/ruff_python_ast/src/name.rs:666
Functionfrom_slice_heap
()
crates/ruff_python_ast/src/name.rs:991
Functionfrom_slice_stack
()
crates/ruff_python_ast/src/name.rs:975
Functionfrom_slice_stack_capacity
()
crates/ruff_python_ast/src/name.rs:983
Methodfrom_sorted
Builds an index from values sorted by interval start, retaining their input order.
crates/ty_python_semantic/src/suppression.rs:861
Methodfrom_source
(source: &str)
crates/ty_test/src/config.rs:104
Methodfrom_source
(source_code: &'a str)
crates/ruff_wasm/src/lib.rs:530
Methodfrom_source
Create a new token source from the given source code which starts at the given offset.
crates/ruff_python_parser/src/token_source.rs:31
Methodfrom_source
( db: &'db dyn Db, env: &'a ProgramEnvironment<'db>, index: &'db SemanticIndex<'db>,
crates/ty_python_semantic/src/place_load.rs:65
Methodfrom_source_code
Read the Jupyter Notebook from its JSON string.
crates/ruff_notebook/src/notebook.rs:89
Methodfrom_source_code
Read the [`SourceKind`] from the given source code. Returns `None` if the source is a TOML file.
crates/ruff_linter/src/source_kind.rs:138
Methodfrom_source_code
Create a [`DisplayParseError`] from a [`ParseError`] and a [`SourceCode`].
crates/ruff_linter/src/logging.rs:193
Methodfrom_source_error
Generate [`Diagnostics`] based on a [`SourceError`].
crates/ruff/src/diagnostics.rs:57
Methodfrom_source_kind
Create a [`DisplayParseError`] from a [`ParseError`] and a [`SourceKind`].
crates/ruff_linter/src/logging.rs:176
Methodfrom_source_range
Analyse the source range for a multiline Python tuple/list that represents an `__all__`/`__slots__`/etc. definition or augmentation. Return `None` if
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:402
Methodfrom_source_text
Builds the [`LineIndex`] from the source text of a file.
crates/ruff_source_file/src/line_index.rs:31
Methodfrom_source_type
(source_type: PySourceType)
crates/ruff_python_formatter/src/options.rs:112
Methodfrom_split
( kind: SectionKind, (raw_name, inline_description): (&'a str, &'a str), also_parses_a
crates/ty_ide/src/docstring/document/google.rs:745
Methodfrom_statement
( with: &'a StmtWith, context: &PyFormatContext, parenthesized_comments: &[SourceComme
crates/ruff_python_formatter/src/statement/stmt_with.rs:252
Methodfrom_static_class
(db: &'db dyn Db, class: StaticClassLiteral<'db>)
crates/ty_python_semantic/src/types/class.rs:196
Methodfrom_std_path
(path: &Path)
crates/ruff_db/src/system/path.rs:406
Methodfrom_step
(step: NonZeroI32)
crates/ty_python_semantic/src/types/tuple.rs:1519
Methodfrom_stmt
(stmt: &Stmt, source: &str)
crates/ruff_python_formatter/src/verbatim.rs:684
Methodfrom_stmt
(stmt: &Stmt)
crates/ruff_linter/src/rules/refurb/rules/repeated_global.rs:122
Methodfrom_stmt
(stmt: &'a Stmt)
crates/ruff_linter/src/rules/ruff/rules/non_empty_init_module.rs:163
Methodfrom_stmt
(stmt: &'a Stmt)
crates/ruff_linter/src/rules/pylint/rules/swap_with_temporary_variable.rs:162
Methodfrom_str
(s: &str)
crates/ty_project/src/metadata/python_version.rs:121
Methodfrom_str
(s: &str)
crates/ruff_source_file/src/line_index.rs:682
Methodfrom_str
(s: &str)
crates/ruff_python_literal/src/format.rs:468
Methodfrom_str
(text: &str)
crates/ruff_python_literal/src/cformat.rs:126
Methodfrom_str
(name: &str)
crates/ty_server/src/capabilities.rs:77
Methodfrom_str
(s: &str)
crates/ty_module_resolver/src/typeshed.rs:161
Methodfrom_str
(s: &str)
crates/ruff_python_formatter/src/options.rs:296
Methodfrom_str
(s: &str)
crates/ruff_python_formatter/src/string/docstring.rs:1659
Methodfrom_str
(text: &str, flags: AnyStringFlags, preferred_quote: Quote)
crates/ruff_python_formatter/src/string/normalize.rs:321
Methodfrom_str
(value: &str)
crates/ruff/src/args.rs:1186
Methodfrom_str
(s: &str)
crates/ruff/src/commands/completions/config.rs:91
Methodfrom_str
(name: &str)
crates/ruff_server/src/server.rs:364
Methodfrom_str
(s: &str)
crates/ruff_python_ast/src/python_version.rs:160
Methodfrom_str
Parse an [`Int`] from a string.
crates/ruff_python_ast/src/int.rs:13
Methodfrom_str
(s: &str)
crates/ruff_python_parser/src/lib.rs:600
Methodfrom_str
(source: &'a str)
crates/mdtest/src/assertion.rs:364
Methodfrom_str
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_27.py:13
Methodfrom_str
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_26.py:18
Methodfrom_str
(s: &str)
crates/ruff_linter/src/line_width.rs:96
Methodfrom_str
(s: &str)
crates/ruff_linter/src/rule_selector.rs:194
Methodfrom_str
(s: &str)
crates/ruff_linter/src/directives.rs:351
Methodfrom_str
(s: &str)
crates/ruff_linter/src/docstrings/sections.rs:55
Methodfrom_str
(s: &str)
crates/ruff_linter/src/settings/types.rs:243
Methodfrom_str
Parses the base from a string.
crates/ruff_linter/src/rules/refurb/rules/fstring_number_format.rs:237
Methodfrom_str
(value: &str)
crates/ruff_linter/src/rules/ruff/rules/explicit_f_string_type_conversion.rs:236
Methodfrom_str
(s: &str)
crates/ruff_linter/src/rules/ruff/rules/unraw_re_pattern.rs:120
Methodfrom_str
(s: &str)
crates/ruff_linter/src/rules/pylint/rules/bad_str_strip_call.rs:108
Methodfrom_str
(value: &str)
crates/ruff_linter/src/rules/pyupgrade/rules/native_literals.rs:26
Methodfrom_str
(source_code: &str)
crates/ruff_linter/src/fix/snippet.rs:12
Methodfrom_str2
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_27.py:14
Methodfrom_str2
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_26.py:19
Methodfrom_str_radix
Parse an [`Int`] from a string with a given radix, like `0x95D`. Takes, as input, the numerical portion (`95D`), the parsed base (`16`), and the enti
crates/ruff_python_ast/src/int.rs:48
Methodfrom_string
(text: &str)
crates/ruff_python_literal/src/format.rs:39
Methodfrom_string
Creates a Calculator instance from a string representation of a number. Args: value_str (str): The string representing t
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_google.py:170
Methodfrom_string
Creates a Calculator instance from a string representation of a number. Parameters ---------- value_str : str
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_numpy.py:224
Methodfrom_sub_diagnostic
Resolve a single sub-diagnostic.
crates/ruff_db/src/diagnostic/render.rs:196
Methodfrom_support
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut ConstraintSetStorage<'
crates/ty_python_semantic/src/types/constraints/solutions.rs:1895
Methodfrom_symbol
(value: &str)
crates/ruff_linter/src/rules/refurb/rules/subclass_builtin.rs:143
Methodfrom_system
(system: &dyn System, path: &SystemPath)
crates/ty_project/src/watch.rs:175
Methodfrom_system
Resolves the mode configured by the `TY_UV` environment variable.
crates/ty_project/src/uv.rs:49
Methodfrom_target_version
(target_version: PythonVersion)
crates/ruff_linter/src/rules/ruff/rules/quadratic_list_summation.rs:85
Methodfrom_test_nodes
Creates a constraint graph from compacted interior nodes for use by downstream tests. The nodes must satisfy the same ordering and allocation invaria
crates/ty_python_core/src/narrowing_constraints.rs:106
Methodfrom_text
(text: &str, indent_width: IndentWidth)
crates/ruff_formatter/src/format_element.rs:511
Methodfrom_text
(original: &'a str, modified: &'a str, path: Option<&'a Path>)
crates/ruff_linter/src/source_kind.rs:209
Methodfrom_text_document
(document: &TextDocument)
crates/ty_server/src/session.rs:1922
Methodfrom_text_range
( text_range: ruff_text_size::TextRange, line_index: &LineIndex, source: &str,
crates/ty_wasm/src/lib.rs:1117
Methodfrom_text_size
( offset: TextSize, line_index: &LineIndex, source: &str, position_encoding: P
crates/ty_wasm/src/lib.rs:1196
Methodfrom_text_slow
(text: &str, indent_width: IndentWidth, mut width: u32)
crates/ruff_formatter/src/format_element.rs:531
Methodfrom_tokens
(tokens: &Tokens, source: &'a str)
crates/ruff_python_codegen/src/stylist.rs:39
Methodfrom_tokens
( source: &str, tokens: &Tokens, indexer: &Indexer, settings: &LinterSettings,
crates/ruff_linter/src/suppression.rs:273
Methodfrom_tokens
(tokens: &Tokens, locator: &'a Locator<'a>)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:62
Methodfrom_tokens
(tokens: &Tokens, source: &str)
crates/ruff_python_index/src/indexer.rs:32
Methodfrom_toml
TODO(konstin): For the real version, fix printing of error chains and remove the path argument
crates/ruff_dev/src/format_dev.rs:915
Methodfrom_toml_str
( content: &str, source: ValueSource, )
crates/ty_project/src/metadata/pyproject.rs:36
Methodfrom_toml_str
(content: &str, source: ValueSource)
crates/ty_project/src/metadata/options.rs:135
Methodfrom_toml_table
Deserialize inline configuration in one crate, avoiding repeated code generation.
crates/ruff_workspace/src/options.rs:522
Methodfrom_transformer_params
(db: &'db dyn Db, params: DataclassTransformerParams<'db>)
crates/ty_python_semantic/src/types.rs:2033
Methodfrom_truthiness
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, truthiness: Truthiness, )
crates/ty_python_semantic/src/types.rs:11084
Methodfrom_try_stmt
( ast::StmtTry { handlers, .. }: &ast::StmtTry, semantic: &SemanticModel, )
crates/ruff_python_semantic/src/binding.rs:711
Methodfrom_two_elements
Create a union type `A | B` from two elements `A` and `B`.
crates/ty_python_semantic/src/types/set_theoretic.rs:140
Methodfrom_ty
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, )
crates/ty_ide/src/goto.rs:262
Methodfrom_type
(member: ProtocolPropertyType<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:1062
Methodfrom_type
(ty: Type<'db>)
crates/ty_python_semantic/src/types/unpacker.rs:565
Methodfrom_type
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/cyclic.rs:248
Methodfrom_type
Inspect a body without specializing it; `scope` resolves variables in an open graph body.
crates/ty_python_semantic/src/types/type_alias.rs:49
Methodfrom_type
Resolve a boolean configuration value from its inferred type.
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:544
Methodfrom_type
Extract only structural enum membership facts from `ty`. This deliberately does not use subtyping: extra nominal restrictions must not be transferred
crates/ty_python_semantic/src/types/equality/enums.rs:390
Methodfrom_type
Returns an eligible candidate if the given type represents one (i.e., it is a fixed-length homogeneous tuple or the empty tuple).
crates/ty_python_semantic/src/types/tuple/promotion.rs:207
Methodfrom_type
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder/named_tuple.rs:771
Methodfrom_type_alias_class
(class: KnownClass)
crates/ty_python_semantic/src/types.rs:761
Methodfrom_type_expression
Construct an unbound `TypeIs` return type from the user-written type expression. ```python from typing import TypeIs def is_tuple(value: object) ->
crates/ty_python_semantic/src/types.rs:12833
Methodfrom_type_expression
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/union_type_instance.rs:104
Methodfrom_type_expression
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/type_form.rs:24
Methodfrom_type_inner
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>,
crates/ty_python_semantic/src/types/equality/enums.rs:396
← previousnext →21,201–21,300 of 31,562, ranked by callers