MCPcopy Create free account

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

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

Methodfrom_raw_parts
(kind: RootNodeKind, pointer: std::ptr::NonNull<()>)
crates/ruff_python_ast/src/generated.rs:8956
Methodfrom_raw_str
(text: &'a str)
crates/ruff_python_literal/src/format.rs:734
Methodfrom_ref
Creates a key for a node reference.
crates/ruff_python_formatter/src/comments/node_key.rs:17
Methodfrom_references
Determine the kind of [`TypingReference`] for all references to a binding.
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:49
Methodfrom_registry
Creates a new rule selection from all known lints in the registry that are enabled according to their default severity.
crates/ty_python_semantic/src/lint.rs:613
Methodfrom_registry_with_default
( registry: &LintRegistry, default_severity: Option<Severity>, )
crates/ty_python_semantic/src/lint.rs:623
Functionfrom_relative_import_missing_alias_suggests_as
()
crates/ty_ide/src/completion.rs:8956
Methodfrom_requirement
Inspect a resolved requirement without inferring or validating the assigned value. Composite requirements need further attribute lookups.
crates/ty_python_semantic/src/types/infer/builder/attribute_assignment.rs:111
Methodfrom_resolver
(db: &'db dyn Db, resolver: PlaceLoadResolver<'db, '_>)
crates/ty_python_semantic/src/place/definitions.rs:51
Methodfrom_rule
(rule: &'a Rule)
crates/ruff/src/commands/rule.rs:33
Methodfrom_rule
(rule: Rule)
crates/ruff_linter/src/registry/rule_set.rs:28
Methodfrom_rule_selectors
( extend_safe_fixes: &[UnresolvedRuleSelector], extend_unsafe_fixes: &[UnresolvedRuleSelector]
crates/ruff_linter/src/settings/fix_safety_table.rs:44
Methodfrom_rules
(rules: &[Rule])
crates/ruff_linter/src/registry/rule_set.rs:50
Methodfrom_schema_items
(db: &'db dyn Db, items: TypedDictSchema<'db>)
crates/ty_python_semantic/src/types/typed_dict.rs:630
Methodfrom_schema_items_with_openness
Creates a synthesized schema while preserving its undeclared-item policy.
crates/ty_python_semantic/src/types/typed_dict.rs:635
Methodfrom_scope
Creates an environment that lazily obtains its program from `scope`.
crates/ty_python_semantic/src/types/context.rs:59
Methodfrom_script_options
Resolves rules and analysis settings using the script's inline `[tool.ty]` table in place of the project configuration. In descending order of precede
crates/ty_project/src/metadata/settings.rs:271
Methodfrom_search_paths
Indexes search paths that may contain a stub package, preserving their position relative to the standard library.
crates/ty_module_resolver/src/resolve.rs:530
Methodfrom_section
(section: &SectionContext)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:493
Methodfrom_sections
(sections: &'a SectionContexts, style: Option<SectionStyle>)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:574
Methodfrom_selector
(unresolved: &UnresolvedRuleSelector, kind: RuleResolutionErrorKind)
crates/ruff_linter/src/rule_selector.rs:87
Methodfrom_semantic_completion
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, semantic: SemanticCompletion<'db>,
crates/ty_ide/src/completion.rs:450
Methodfrom_settings
Validate and normalize the raw settings given by the user into settings we can use for module resolution This method also implements the typing spec'
crates/ty_module_resolver/src/resolve.rs:788
Methodfrom_settings
Creates a program from settings whose search roots have already been registered.
crates/ty_python_core/src/program.rs:30
Methodfrom_settings
(settings: &LinterSettings)
crates/ruff_linter/src/directives.rs:29
Methodfrom_signatures
( source: &Signature<'db>, target: &Signature<'db>, relation: TypeRelation, ty
crates/ty_python_semantic/src/types/signatures.rs:837
Methodfrom_slice
(slice: &'slice [OperandOrOperator<'a>])
crates/ruff_python_formatter/src/expression/binary_like.rs:535
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:84
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:199
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:1656
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:343
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:225
Methodfrom_support
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut ConstraintSetStorage<'
crates/ty_python_semantic/src/types/constraints/solutions.rs:1909
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:53
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:1950
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
← previousnext →21,301–21,400 of 31,766, ranked by callers