MCPcopy Create free account

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

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

↓ 13 callersMethodwith_extension
(&self, extension: &str)
crates/ruff_db/src/system/path.rs:379
↓ 12 callersMethodadd_atom
(&mut self, predicate: ScopedPredicateId)
crates/ty_python_core/src/narrowing_constraints.rs:238
↓ 12 callersMethodas_bytes
(&self)
crates/ruff_db/src/vendored.rs:411
↓ 12 callersMethodas_char
(self)
crates/ruff_python_ast/src/str.rs:20
↓ 12 callersMethodas_str
(&self)
crates/ruff_db/src/diagnostic/mod.rs:914
↓ 12 callersMethodas_str
(self)
crates/ruff_linter/src/rules/refurb/rules/sorted_min_max.rs:220
↓ 12 callersMethodas_u32
(self)
crates/ty_python_core/src/reachability_constraints.rs:109
↓ 12 callersFunctionassert_example
(target: &str, expected: snapbox::Data)
crates/ruff_annotate_snippets/tests/examples.rs:88
↓ 12 callersFunctionassert_function_query_was_run
Assert that the Salsa query described by the generic parameter `C` was executed at least once with the input `input` in the history span represented b
crates/ruff_db/src/testing.rs:86
↓ 12 callersMethodbinary_search
(&self, value: &T)
crates/ruff_index/src/slice.rs:121
↓ 12 callersMethodbindings
(&self)
crates/ty_python_core/src/use_def/place_state.rs:763
↓ 12 callersMethodbool
Resolves the boolean value of the type and falls back to [`Truthiness::Ambiguous`] if the type doesn't implement `__bool__` correctly. This method sh
crates/ty_python_semantic/src/types/bool.rs:25
↓ 12 callersMethodbuild
(self)
crates/ruff_db/src/testing.rs:202
↓ 12 callersMethodbuild_inference_with
Build correlated type-variable inference, preserving missing evidence and incomplete solutions. The hook must retain whether an override is only a fal
crates/ty_python_semantic/src/types/generics.rs:2916
↓ 12 callersMethodcallable_type
(&self)
crates/ty_python_semantic/src/types/call/bind.rs:1520
↓ 12 callersMethodchange_workspace_folders
Send a `workspace/didChangeWorkspaceFolders` notification with the given added/removed workspace folders. The paths provided should be paths to the ro
crates/ty_server/tests/e2e/main.rs:968
↓ 12 callersMethodchars
(&self)
crates/ruff_python_trivia/src/cursor.rs:33
↓ 12 callersMethodcollect_vec
Walks the project paths and collects the paths of all files that are included in the project. The file-walk callback uses a cloned database. Salsa qu
crates/ty_project/src/walk.rs:158
↓ 12 callersMethodcolor
Whether to enable colors or not.
crates/ruff_db/src/diagnostic/mod.rs:1450
↓ 12 callersMethodconcat
(slices: &[T])
crates/ruff_python_ast/src/name.rs:80
↓ 12 callersMethodcontent
Returns the new content for an insertion or deletion.
crates/ruff_diagnostics/src/edit.rs:61
↓ 12 callersMethodcontent_range
The range of the string literal's contents. This excludes any prefixes, opening quotes or closing quotes.
crates/ruff_python_ast/src/nodes.rs:1943
↓ 12 callersMethodcreate
Creates a new, empty virtual environment.
scripts/ty_benchmark/src/benchmark/venv.py:55
↓ 12 callersMethodcurrent_place_table_mut
(&mut self)
crates/ty_python_core/src/builder.rs:1073
↓ 12 callersMethoddefault_specialization
Returns the default specialization of this class. For non-generic classes, the class is returned unchanged. For a non-specialized generic class, we re
crates/ty_python_semantic/src/types/class/static_literal.rs:673
↓ 12 callersMethoddefinitions
Returns the definitions found for the name.
crates/ty_python_semantic/src/place/definitions.rs:161
↓ 12 callersMethoddeprecated
Returns the deprecated info if this class is deprecated.
crates/ty_python_semantic/src/types/class.rs:914
↓ 12 callersFunctiondirectory_listing
( db: &'db dyn Db, path: &SystemPath, )
crates/ruff_db/src/files/directory.rs:94
↓ 12 callersFunctionenum_metadata
( db: &'db dyn Db, class: ClassLiteral<'db>, )
crates/ty_python_semantic/src/types/enums.rs:1008
↓ 12 callersMethodexists
Returns a new BDD that is the _existential abstraction_ of `self` for a set of typevars. The result will return true whenever `self` returns true for
crates/ty_python_semantic/src/types/constraints.rs:2843
↓ 12 callersMethodexpression_scope_id
(&self, expression: &E)
crates/ty_python_core/src/lib.rs:429
↓ 12 callersMethodfirst
Peeks the next character from the input stream without consuming it. Returns [`EOF_CHAR`] if the position is past the end of the file.
crates/ruff_python_parser/src/lexer/cursor.rs:42
↓ 12 callersFunctionformat
(root: &dyn Format<SimpleFormatContext>)
crates/ruff_formatter/src/printer/mod.rs:1678
↓ 12 callersFunctionformat_module_source
( source: &str, options: PyFormatOptions, )
crates/ruff_python_formatter/src/lib.rs:142
↓ 12 callersMethodfreshness
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:1092
↓ 12 callersFunctionget_assertions
(source: &str)
crates/mdtest/src/assertion.rs:547
↓ 12 callersMethodget_span
Returns the `Span` associated with this annotation.
crates/ruff_db/src/diagnostic/mod.rs:853
↓ 12 callersMethodheader_range
Returns the range of the `TypedDict` call expression.
crates/ty_python_semantic/src/types/class/typed_dict.rs:949
↓ 12 callersMethodinfer_definition
(&mut self, node: impl Into<DefinitionNodeKey> + std::fmt::Debug + Copy)
crates/ty_python_semantic/src/types/infer/builder.rs:2333
↓ 12 callersMethodinto_iter
(self)
crates/ruff_python_ast/src/nodes.rs:296
↓ 12 callersMethodinto_regular
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/callable.rs:916
↓ 12 callersMethodis_divergent
(&self)
crates/ty_python_semantic/src/types.rs:2489
↓ 12 callersMethodis_implicitly_open
(self)
crates/ty_python_semantic/src/types/typed_dict.rs:122
↓ 12 callersMethodis_loop_header
(&self)
crates/ty_python_core/src/definition.rs:1015
↓ 12 callersMethodis_overload
(self, db: &dyn Db)
crates/ty_python_semantic/src/types/function.rs:357
↓ 12 callersMethodis_standard_library
(&self)
crates/ty_module_resolver/src/path.rs:701
↓ 12 callersFunctionis_stub
Returns `true` if a function has an empty body, and is therefore a stub. A function body is considered to be empty if it contains only `pass` stateme
crates/ruff_python_semantic/src/analyze/function_type.rs:165
↓ 12 callersMethodis_trivially_never_satisfied
Returns whether this constraint set is the `never` terminal. A nonterminal constraint set can also never be satisfied, so `false` does not prove that
crates/ty_python_semantic/src/types/constraints.rs:608
↓ 12 callersMethoditems
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/typed_dict.rs:966
↓ 12 callersMethoditer
Returns an iterator over every symbol along with its ID.
crates/ty_ide/src/symbols.rs:146
↓ 12 callersMethoditer
(&self)
crates/ty_python_semantic/src/types/call/arguments.rs:516
↓ 12 callersMethoditer_overloads_and_implementation
( self, db: &'db dyn Db, )
crates/ty_python_semantic/src/types/function.rs:975
↓ 12 callersMethodjoin
(mut self)
crates/ruff_server/src/server/schedule/thread.rs:88
↓ 12 callersMethodkeys
(self)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM118.py:42
↓ 12 callersMethodknown
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:214
↓ 12 callersFunctionknown_module_symbol
Lookup the type of `symbol` in a given known module. Returns `Place::Undefined` if the given known module cannot be resolved for some reason.
crates/ty_python_semantic/src/place.rs:722
↓ 12 callersMethodlen
(&self)
crates/ruff_server/src/server/schedule/thread/pool.rs:130
↓ 12 callersMethodline_range
Returns the [`TextRange`] of the `line` with the given index. The start points to the first character's [byte offset](TextSize), the end up to, and in
crates/ruff_source_file/src/line_index.rs:312
↓ 12 callersMethodliterals
Returns an iterator over the [`StringLiteral`] parts contained in this value. Note that this doesn't recurse into the f-string parts. For example, `
crates/ruff_python_ast/src/nodes.rs:621
↓ 12 callersFunctionmatch_call_mut
( expression: &'a mut Expression<'b>, )
crates/ruff_linter/src/cst/matchers.rs:77
↓ 12 callersFunctionmatch_expression
Given the source code for an expression, return the parsed [`Expression`]. If the expression is not guaranteed to be valid as a standalone expression
crates/ruff_linter/src/cst/matchers.rs:231
↓ 12 callersMethodmatches
(self, db: &'db dyn Db, other: Self)
crates/ty_python_semantic/src/types/infer/builder.rs:456
↓ 12 callersMethodmaterialize
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, kind: MaterializationK
crates/ty_python_semantic/src/types/class_base.rs:460
↓ 12 callersMethodmerged_specialization
(&self)
crates/ty_python_semantic/src/types/call/bind.rs:6448
↓ 12 callersMethodnext
(&mut self)
crates/ty_project/src/lib.rs:1116
↓ 12 callersMethodnext
(&mut self)
crates/ruff_python_semantic/src/analyze/class.rs:99
↓ 12 callersMethodnext_back
(&mut self)
crates/ty_python_semantic/src/types/mro.rs:718
↓ 12 callersMethodnotebook_or_file_path
Returns the document's path, or its containing notebook's path for a cell.
crates/ty_server/src/session.rs:1665
↓ 12 callersMethodoffset
(self)
crates/ty_python_core/src/member.rs:748
↓ 12 callersMethodopen_file
(&mut self, path: &str, contents: &str)
crates/ty_wasm/src/lib.rs:189
↓ 12 callersMethodor_fall_back_to
Fallback (wholly or partially) to `fallback` to create a new [`LookupResult`].
crates/ty_python_semantic/src/place.rs:437
↓ 12 callersMethodparent
(&self)
crates/ty_module_resolver/src/module_name.rs:134
↓ 12 callersMethodparser_version
Return the [`PythonVersion`] to use for parsing. This will be either the Python version specified by the user or the latest supported version if unse
crates/ruff_linter/src/settings/mod.rs:908
↓ 12 callersMethodpermissions
(&self)
crates/ruff_db/src/system.rs:317
↓ 12 callersMethodpop
(&mut self)
crates/ruff_python_parser/src/lexer/interpolated_string.rs:135
↓ 12 callersMethodprefix
(self)
crates/ruff_python_ast/src/nodes.rs:1181
↓ 12 callersMethodraw_value_type
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/type_alias.rs:254
↓ 12 callersMethodreachable_bindings
( &self, place: ScopedPlaceId, )
crates/ty_python_core/src/use_def.rs:1244
↓ 12 callersMethodrendering_sort_key
Returns a key that can be used to sort two diagnostics into the canonical order in which they should appear when rendered.
crates/ruff_db/src/diagnostic/mod.rs:355
↓ 12 callersMethodresolved_client_capabilities
(&self)
crates/ruff_server/src/session.rs:196
↓ 12 callersMethodrevision
(&self)
crates/ruff_db/src/system.rs:313
↓ 12 callersMethodsecond
(&self)
crates/ruff_python_trivia/src/cursor.rs:59
↓ 12 callersMethodsend
(&mut self, message: Message)
crates/ruff_server/tests/e2e/main.rs:320
↓ 12 callersMethodset_parent
Set the offset of the diagnostic's parent statement.
crates/ruff_db/src/diagnostic/mod.rs:429
↓ 12 callersMethodspeculate_without_diagnostics
Returns a speculative builder that does not construct diagnostics. Note that this method may lead to lost diagnostics if the expression cache is enab
crates/ty_python_semantic/src/types/infer/builder.rs:12867
↓ 12 callersMethodstart
(&self)
crates/ruff_source_file/src/newlines.rs:211
↓ 12 callersMethodtake_snapshot
Creates a document snapshot with the URI referencing the document to snapshot.
crates/ruff_server/src/session.rs:104
↓ 12 callersFunctiontest_helper
(source: &str, members_to_remove: &[&str])
crates/ruff_linter/src/rules/pyupgrade/fixes.rs:75
↓ 12 callersFunctiontest_resource_path
(path: impl AsRef<Path>)
crates/ruff_linter/src/test.rs:120
↓ 12 callersMethodtext_len
(&self)
crates/ruff_python_parser/src/lexer/cursor.rs:66
↓ 12 callersMethodto_intersection
Reconstruct the equivalent set-theoretic intersection.
crates/ty_python_semantic/src/types/enums.rs:926
↓ 12 callersMethodto_meta_type
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types.rs:9457
↓ 12 callersMethodto_module_path
(&self)
crates/ty_module_resolver/src/path.rs:692
↓ 12 callersMethodtokens
(&self)
crates/ruff_python_formatter/src/context.rs:85
↓ 12 callersMethodtry_expression_scope_id
Returns the ID of the `expression`'s enclosing scope.
crates/ty_python_core/src/lib.rs:438
↓ 12 callersMethodupdate
Update the notebook with the given sourcemap and transformed content.
crates/ruff_notebook/src/notebook.rs:440
↓ 12 callersFunctionuv_test_env_vars
()
crates/ty_project/src/uv.rs:114
↓ 12 callersMethodvariadic
Return the variadic parameter (`*args`), if any, and its index, or `None`.
crates/ty_python_semantic/src/types/signatures.rs:5696
↓ 12 callersMethodverify_builder
(self, builder: &'c ConstraintSetBuilder<'db>)
crates/ty_python_semantic/src/types/constraints.rs:525
↓ 12 callersMethodvisit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/visitor.rs:539
← previousnext →1,301–1,400 of 31,766, ranked by callers