MCPcopy Create free account

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

Functions29,290 in github.com/astral-sh/ruff

↓ 18 callersMethodfile
(&self)
crates/ty_python_semantic/src/lint.rs:138
↓ 18 callersMethodfiles
Returns the files belonging to this project.
crates/ty_project/src/lib.rs:643
↓ 18 callersMethodfinish
(&mut self)
crates/ruff_db/src/display.rs:38
↓ 18 callersMethodfinish
(self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:916
↓ 18 callersMethodfocus_range
Returns the [`FileRange`] of the function's name.
crates/ty_python_semantic/src/types/function.rs:426
↓ 18 callersMethodhas_leading
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:272
↓ 18 callersMethodinference_flags
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:11690
↓ 18 callersMethodinsert
(mut self, insert: impl Into<CompactString>)
crates/ty_ide/src/completion.rs:583
↓ 18 callersMethodinto_iter
(self)
crates/ruff_linter/src/registry/rule_set.rs:332
↓ 18 callersMethodinto_iter
(self)
crates/ty_site_packages/src/lib.rs:258
↓ 18 callersMethodis_global
(self)
crates/ty_python_core/src/scope.rs:108
↓ 18 callersMethodis_ipynb
(self)
crates/ruff_python_ast/src/lib.rs:153
↓ 18 callersMethodis_literal_expr
Returns `true` if the expression is a literal expression. A literal expression is either a string literal, bytes literal, integer, float, complex num
crates/ruff_python_ast/src/nodes.rs:63
↓ 18 callersMethodis_triple_quoted
Returns `true` if the current f-string is a triple-quoted f-string.
crates/ruff_python_parser/src/lexer/interpolated_string.rs:75
↓ 18 callersMethodlen
(&self)
crates/ruff_db/src/parsed.rs:489
↓ 18 callersMethodline
Set the default line number to display
crates/ruff_annotate_snippets/src/snippet.rs:558
↓ 18 callersMethodname
(self, db: &'db dyn Db, module: &'ast ParsedModuleRef)
crates/ty_python_core/src/scope.rs:71
↓ 18 callersMethodname
(&self)
crates/ty_python_semantic/src/lint.rs:94
↓ 18 callersMethodor
(self, other: Self)
crates/ty_python_core/src/lib.rs:976
↓ 18 callersMethodordered_source_order
Repeating a source-order tree cannot change the first occurrence of any constraint, so combining identical trees must reuse their existing sidecar.
crates/ty_python_semantic/src/types/constraints.rs:1489
↓ 18 callersMethodp
(&mut self, s: &str)
crates/ruff_python_codegen/src/generator.rs:171
↓ 18 callersFunctionplace_from_bindings
Infer the combined type from an iterator of bindings, and return it together with boundness information in a [`Place`]. The type will be a union if t
crates/ty_python_semantic/src/place.rs:789
↓ 18 callersMethodprogram_environment
(&self)
crates/ty_python_semantic/src/types/call/bind.rs:166
↓ 18 callersMethodpython_file
(&self)
crates/ty_python_semantic/src/semantic_model.rs:69
↓ 18 callersMethodreturn_type
(&self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/call.rs:314
↓ 18 callersMethodreverse
(self)
crates/ruff_linter/src/rules/refurb/rules/if_expr_min_max.rs:174
↓ 18 callersMethodscope_id
The scope in which the reference is defined.
crates/ruff_python_semantic/src/reference.rs:36
↓ 18 callersMethodsearch_path
(&self)
crates/ty_module_resolver/src/path.rs:89
↓ 18 callersMethodshrink_to_fit
(&mut self)
crates/ty_python_semantic/src/types/diagnostic.rs:1409
↓ 18 callersMethodstatus
(&self)
crates/ty_python_semantic/src/lint.rs:134
↓ 18 callersMethodsystem
(&self)
crates/ruff_db/src/system/test.rs:90
↓ 18 callersMethodtype_argument
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types.rs:10832
↓ 18 callersMethodvisit_body
(&mut self, body: &'db [ast::Stmt])
crates/ty_ide/src/symbols.rs:844
↓ 17 callersMethodadd_python_cell
(&mut self, content: &str)
crates/ty_server/tests/e2e/notebook.rs:642
↓ 17 callersMethodannotation
(&self, module: &'ast ParsedModuleRef)
crates/ty_python_core/src/definition.rs:1484
↓ 17 callersMethodas_function_def_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:399
↓ 17 callersMethodas_function_literal
(self)
crates/ty_python_semantic/src/types.rs:2530
↓ 17 callersMethodas_nominal_instance
(self)
crates/ty_python_semantic/src/types/instance.rs:147
↓ 17 callersMethodas_str
The code that is ignored by the `noqa` directive.
crates/ruff_linter/src/noqa.rs:103
↓ 17 callersMethodas_str
(&self)
crates/ruff_linter/src/rules/ruff/rules/unused_noqa.rs:22
↓ 17 callersMethodas_symbol
Returns `Some` if the reference is a `Symbol`, otherwise `None`.
crates/ty_python_core/src/place.rs:112
↓ 17 callersMethodchar_column
Set the default column to display <div class="warning"> `char_column` is only be respected if [`Origin::line`] is also set. </div>
crates/ruff_annotate_snippets/src/snippet.rs:570
↓ 17 callersFunctioncheck_os_pathlib_single_arg_calls
We check functions that take only 1 argument, this does not apply to functions with `dir_fd` argument, because `dir_fd` is not supported by pathlib,
crates/ruff_linter/src/rules/flake8_use_pathlib/helpers.rs:53
↓ 17 callersMethodcover
(self, other: TextRange)
crates/ruff_text_size/src/range.rs:249
↓ 17 callersMethoddefault_specialization
Returns the default specialization for this class. For static classes, this applies default type arguments. For dynamic classes, this returns a non-g
crates/ty_python_semantic/src/types/class.rs:759
↓ 17 callersFunctiondelete_stmt
Return the [`Edit`] to use when deleting a [`Stmt`]. In some cases, this is as simple as deleting the [`TextRange`] of the [`Stmt`] itself. However,
crates/ruff_linter/src/fix/edits.rs:39
↓ 17 callersMethodexplicit_extra_items
Returns extra items only when they were explicitly declared. An implicitly open `TypedDict` returns `None` here because its hidden items are not dire
crates/ty_python_semantic/src/types/typed_dict.rs:97
↓ 17 callersMethodextend
Extend `self` with the components of `other` # Examples ``` use ty_module_resolver::ModuleName; let mut module_name = ModuleName::new_static("foo")
crates/ty_module_resolver/src/module_name.rs:281
↓ 17 callersMethodfirst_public_binding
(&self, symbol: ScopedSymbolId)
crates/ty_python_core/src/lib.rs:1093
↓ 17 callersMethodformat
(&self)
crates/ruff_python_formatter/src/generated.rs:24
↓ 17 callersMethodformat
Whether to enable concise diagnostic output or not.
crates/ruff_db/src/diagnostic/mod.rs:1477
↓ 17 callersMethodget
Looks up a lint by its name.
crates/ty_python_semantic/src/lint.rs:415
↓ 17 callersMethodin_range
Initialize [`NoqaLexer`] in the given range of source text.
crates/ruff_linter/src/noqa.rs:429
↓ 17 callersMethodintersect
Return a new tuple-spec builder that reflects the intersection of this tuple and another tuple, or `None` if the intersection is impossible (e.g., two
crates/ty_python_semantic/src/types/tuple.rs:3145
↓ 17 callersMethodinto_iter
(self)
crates/ty_project/src/lib.rs:857
↓ 17 callersMethodis_ellipsis_literal_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2503
↓ 17 callersMethodis_eof
(self)
crates/ruff_python_ast/src/token.rs:327
↓ 17 callersMethodis_same_typevar_as
Returns whether two bound typevars represent the same occurrence, regardless of e.g. differences in their bounds or constraints due to materialization
crates/ty_python_semantic/src/types/typevar.rs:1151
↓ 17 callersMethoditer_positive
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/set_theoretic.rs:1194
↓ 17 callersMethodlen
Returns the number of rules in this set. ## Examples ```rust # use ruff_linter::registry::{Rule, RuleSet}; assert_eq!(RuleSet::empty().len(), 0); as
crates/ruff_linter/src/registry/rule_set.rs:177
↓ 17 callersMethodminimum
Returns the minimum length of this tuple.
crates/ty_python_semantic/src/types/tuple.rs:64
↓ 17 callersMethodnode
(&self, module: &'ast ParsedModuleRef)
crates/ty_python_core/src/definition.rs:1471
↓ 17 callersMethodnode_level
(&self)
crates/ruff_python_formatter/src/context.rs:65
↓ 17 callersMethodplace_id
Returns the [`ScopedPlaceId`] of the place expression.
crates/ty_python_core/src/place.rs:246
↓ 17 callersMethodprefix
Return the prefix for the [`NoqaCode`], e.g., `SIM` for `SIM101`.
crates/ruff_linter/src/codes.rs:24
↓ 17 callersMethodprogram_file
(&self)
crates/ty_python_semantic/src/semantic_model.rs:73
↓ 17 callersMethodremove_file
(self, db: &mut dyn Db, file: File)
crates/ty_project/src/lib.rs:550
↓ 17 callersFunctionrename
Perform a rename operation on the symbol at the given position. Returns all locations that need to be updated with the new name.
crates/ty_ide/src/rename.rs:57
↓ 17 callersMethodscope
Returns the scope in which this dynamic `TypedDict` was created.
crates/ty_python_semantic/src/types/class/typed_dict.rs:930
↓ 17 callersFunctionsite_packages_directories_from_sys_prefix
Attempt to retrieve the `site-packages` directories associated with a given Python installation. The location of the `site-packages` directories can
crates/ty_site_packages/src/lib.rs:1624
↓ 17 callersMethodsnapshot
(&self)
crates/ruff_python_parser/src/parser/scratch_buffer.rs:38
↓ 17 callersMethodterm_width
Set the width to render within Affects the rendering of [`Snippet`][crate::Snippet]s
crates/ruff_annotate_snippets/src/renderer/mod.rs:170
↓ 17 callersMethodto_instance
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types.rs:1184
↓ 17 callersMethodto_meta_type
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/instance.rs:435
↓ 17 callersMethodto_str
(&self, db: &'a dyn Db)
crates/ty_module_resolver/src/resolve.rs:1348
↓ 17 callersMethodtrim_whitespace
(&self)
crates/ruff_python_trivia/src/whitespace.rs:113
↓ 17 callersMethodtry_to_class_literal
Look up a [`KnownClass`] in its canonical module and return a [`Type`] representing that class literal. If the class cannot be found, a debug-level l
crates/ty_python_semantic/src/types/class/known.rs:1385
↓ 17 callersMethodvisit
(&self, db: &'db dyn Db, item: T, compute: impl FnOnce() -> R)
crates/ty_python_semantic/src/types/cyclic.rs:375
↓ 17 callersMethodwith_failure_code
(self, code: server::ErrorCode)
crates/ruff_server/src/server/api.rs:388
↓ 16 callersMethodadd_binding
Add a binding for the given definition. Returns the result of the `infer_value_ty` closure, which is called with the declared type as type context.
crates/ty_python_semantic/src/types/infer/builder.rs:1449
↓ 16 callersMethodall
Returns all supported semantic token types as enum variants.
crates/ty_ide/src/semantic_tokens.rs:77
↓ 16 callersMethodas_code
Access the resulting code, borrowing the result
crates/ruff_formatter/src/lib.rs:414
↓ 16 callersMethodas_function_def
Return the [`ast::StmtFunctionDef`] of the definition, if it's a function definition.
crates/ruff_python_semantic/src/definition.rs:174
↓ 16 callersMethodas_str
(self)
crates/ruff_linter/src/docstrings/mod.rs:99
↓ 16 callersMethodas_subscript_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2606
↓ 16 callersMethodas_system
(&self)
crates/ty_test/src/db.rs:414
↓ 16 callersFunctionassert_function_query_was_not_run
( db: &Db, query: Q, input: I, events: &[salsa::Event], )
crates/ruff_db/src/testing.rs:6
↓ 16 callersMethodassert_progressing
(&mut self, p: &Parser)
crates/ruff_python_parser/src/parser/progress.rs:35
↓ 16 callersFunctioncatch_unwind
Invokes a closure, capturing and returning the cause of an unwinding panic if one occurs. ### Thread safety This is implemented by installing a cust
crates/ruff_db/src/panic.rs:145
↓ 16 callersMethodclass
(&self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/instance.rs:233
↓ 16 callersMethodcontents
(&self)
crates/ruff_server/src/edit/text_document.rs:68
↓ 16 callersMethodcurrent_expressions
Returns an [`Iterator`] over the current expression hierarchy, from the current [`Expr`] through to any parents.
crates/ruff_python_semantic/src/model.rs:1487
↓ 16 callersMethoddb
(&self)
crates/ty/tests/file_watching.rs:56
↓ 16 callersMethoddb
Returns the underlying test DB.
crates/ty_ide/src/completion.rs:11194
↓ 16 callersMethodextension
(&self)
crates/ty_module_resolver/src/path.rs:850
↓ 16 callersMethodhomogeneous_element_type
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/tuple.rs:2503
↓ 16 callersMethodid
(&self)
crates/ruff_python_ast/src/nodes.rs:2532
↓ 16 callersMethodinfer_maybe_standalone_expression
( &mut self, expression: &ast::Expr, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer/builder.rs:6332
↓ 16 callersMethodinitialization_result
Get the initialization result
crates/ty_server/tests/e2e/main.rs:769
↓ 16 callersMethodinto_owned
(self)
crates/ruff_python_codegen/src/stylist.rs:37
← previousnext →801–900 of 29,290, ranked by callers